A macOS CLI tool to quickly open configured local git repositories in your editor of choice.
brew tap khurd21/proj
brew install khurd21/proj/projAfter installing, you need at least one scan directory configured. You can either edit the config file directly or use the CLI.
Option 1 — CLI:
proj --add-path ~/CodeOption 2 — Edit config directly:
The config file lives at $(brew --prefix)/var/proj/config/proj.yaml:
scan_directories:
- ~/Code
- ~/Projects
editor: vscodeproj --helpPrints command usage, options, and examples.
proj <project-name>Scans configured directories for a git repo matching <project-name> and opens it in your configured editor.
proj --list-projectsPrints all git repository names found in your scan directories.
proj --view-settingsPrints the configured scan directories and editor.
proj --add-path <path> # Add a scan directory
proj --remove-path <path> # Remove a specific path
proj --remove-path # Interactively select a path to remove
proj --clear-paths # Remove all configured scan directoriesproj --set-editor vscodeValidates that the editor is available on your system before saving.
vscode
If completion does not load in a shell session, initialize zsh completion and retry:
autoload -Uz compinit
compinit -iMIT