Command line tool for navigating git repositories.
[Github](https://github.com/hoto/fuzzy-repo-finder)
Installation
sudo snap install fuzzy-repo-finder
Add to your ~/.bashrc
or ~/.zshrc
or ~/.profile
:
function go_to_project() {
cd $(fuzzy-repo-finder --projectRoots "${HOME}/projects,${HOME}/go/src" $@)
}
alias g='go_to_project'
In terminal:
$ g
Find projects by partial name:
$ g myprojectname
Debug:
$ fuzzy-repo-finder --projectRoots "${HOME}/projects,${HOME}/go/src" --debug myprojectname
Help:
$ fuzzy-repo-finder --help
Demo
From directory structure:
~/projects
├── group_A
│ ├── project_1
│ ├── project_2
│ └── project_3
└── group_B
├── project_1
├── project_2
└── group_C
└── project_1
Unfiltered:
Search:
group_A
project_1
project_2
project_3
group_B
project_1
project_2
project_3
group_B/group_C
project_1
Filtered:
Search: pr1
group_A
project_1
group_B
project_1
group_B/group_C
project_1