prj is a CLI utility for quickly jumping between your Git project directories using fd and fzf.
- Fuzzy search your Git project folders with
fzf - Automatically detects projects by searching for
.gitdirectories - Simple command-line interface with help and version flags
macOS:
brew tap mattmc3/tools
brew install prjMake sure you have fd and fzf installed.
Initialize prj in your shell's config file:
Fish:
# ~/.config/fish/config.fish
prj -i fish | sourceBash/Zsh:
# ~/.bashrc or ~/.zshrc
eval "$(prj -i sh)"prj [-h] [-i <shell>] [-v] [<query>]Options:
-h- Show help message-i <shell>- Output shell initialization code (sh, bash, zsh, or fish)-v- Show version information<query>- Optional search query to filter projects
# Interactive selection
prj
# Search with a query
prj myproject
# Generate shell initialization
prj -i fish
prj -i shBy default, prj searches for projects in $HOME/Projects.
You can override this by setting the PRJ_DIR environment variable:
set -gx PRJ_DIR /path/to/your/projectsMIT License
Inspired by project jumpers in other shells.