{"id":13852644,"url":"https://github.com/mollifier/cd-gitroot","last_synced_at":"2025-07-13T06:30:46.634Z","repository":{"id":12526009,"uuid":"15195898","full_name":"mollifier/cd-gitroot","owner":"mollifier","description":"zsh plugin to cd to git repository root directory.","archived":false,"fork":false,"pushed_at":"2021-03-25T18:47:10.000Z","size":6,"stargazers_count":77,"open_issues_count":1,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-04T19:05:30.521Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mollifier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-15T01:28:59.000Z","updated_at":"2025-06-23T06:36:06.000Z","dependencies_parsed_at":"2022-07-08T00:55:43.413Z","dependency_job_id":null,"html_url":"https://github.com/mollifier/cd-gitroot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mollifier/cd-gitroot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mollifier%2Fcd-gitroot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mollifier%2Fcd-gitroot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mollifier%2Fcd-gitroot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mollifier%2Fcd-gitroot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mollifier","download_url":"https://codeload.github.com/mollifier/cd-gitroot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mollifier%2Fcd-gitroot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265098887,"owners_count":23711217,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T22:01:30.157Z","updated_at":"2025-07-13T06:30:46.359Z","avatar_url":"https://github.com/mollifier.png","language":"Shell","readme":"# cd-gitroot\n\n## Synopsis\nzsh plugin to change directory to git repository root directory\n\nInspired by [id:hitode909 blog post](http://hitode909.hatenablog.com/entry/20100211/1265879271).\n\n## How to set up\n\n### Manually install\n\nPut cd-gitroot and _cd-gitroot files somewhere in your $fpath and add the following line to your .zshrc:\n\n```\nautoload -Uz cd-gitroot\n```\n\n#### For example\n\n```\n# download all files\n% cd /path/to/dir\n% git clone https://github.com/mollifier/cd-gitroot.git\n```\n\nAnd add the following lines to your .zshrc:\n\n```\nfpath=(/path/to/dir/cd-gitroot(N-/) $fpath)\n\nautoload -Uz cd-gitroot\n```\n\n### Installing using Antigen\nIf you use [Antigen](https://github.com/zsh-users/antigen), add the following line to your .zshrc:\n\n```\nantigen bundle mollifier/cd-gitroot\n```\n### Using Oh-my-zsh:\nIf you use [Oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh):\n\n1. Clone this repository in oh-my-zsh's plugins directory:\n\n        git clone https://github.com/mollifier/cd-gitroot.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/cd-gitroot\nyou\n2. Activate the plugin in `~/.zshrc`:\n\n        plugins=( [plugins...] cd-gitroot)\n\n3. Source `~/.zshrc`  to take changes into account:\n\n        source ~/.zshrc\n### Installing using Zgen\nIf you use [zgen](https://github.com/tarjoilija/zgen), add the following to your `.zshrc`\n```\nzgen load mollifier/cd-gitroot\n```\nto your `.zshrc` with your other `zgen load` commands.\n\nYou can set alias to this function.\ne.g.\n\n```\nalias cdu='cd-gitroot'\n```\n\n## Usage\n\n```\ncd-gitroot [PATH]\n```\n\nIf PATH isn't specified, change directory to current git repository root directory.\nelse change directory to PATH instead of it.\nPATH is treated relative path in git root directory.\n\n## Options\n\\-h display help and exit\n\n","funding_links":[],"categories":["Plugins","Shell"],"sub_categories":["ZSH on Windows","Zinit (née zplugin)"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmollifier%2Fcd-gitroot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmollifier%2Fcd-gitroot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmollifier%2Fcd-gitroot/lists"}