A project directory navigator for zsh, powered by fzf. Quickly jump to your projects with frecency-based sorting.
Unlike general-purpose directory jumpers (z, zoxide, autojump), pjfzf is designed specifically for project directories:
| pjfzf | zoxide / z / autojump | |
|---|---|---|
| Scope | Only registered project directories — no noise | Every directory you've ever visited |
| Browsing | fzf with file preview | Blind jump by query match |
| Project creation | pjmk creates and navigates |
Not supported |
| Tab completion | pj + Tab opens fzf |
Standard shell completion |
brew tap K021/pjfzf
brew trust k021/pjfzf # Homebrew 6+ requires trusting third-party taps
brew install pjfzfThen add to ~/.zshrc:
source $(brew --prefix)/share/pjfzf/pj.zshcurl -o ~/.pj.zsh https://raw.githubusercontent.com/K021/pjfzf/main/pj.zsh
echo 'source ~/.pj.zsh' >> ~/.zshrc
source ~/.zshrc- zsh
- fzf (
brew install fzf)
pj # Select project interactively with fzf
pj <query> # Filter with initial search query
pj add <path> # Register a base directory
pj remove <path> # Unregister a base directory
pj list # Show registered base directories
pj help # Show helppjmk # Pick base directory → enter name → create & cd
pjmk my-project # Provide name upfrontType pj and press Tab to launch fzf.
| File | Path |
|---|---|
| Config | ~/.config/pj/config |
| History | ~/.config/pj/history |
The config file lists base directories, one per line. Default: ~/projects.
MIT
