Auto-completion for these commands are supported.
Install using fisher:
fisher install lideming/fish-commands
cd
into relative path of current git repo.
Example: (assuming ~/git/fish-commands
is the root of a git repo)
~/git/fish-commands/completions> git-cd functions
~/git/fish-commands/functions>
cd
into any repository from anywhere.
Setup repo roots before using this command, multiple roots are supported:
set -U __git_repo_roots ~/git ~/projects
(set -U
make it persist across shell restarts)
Examples:
~/git/fish-commands/completions> cd-repo dotfiles
~/git/dotfiles>
~/git/dotfiles> cd-repo fish-commands/functions
~/git/fish-commands/functions>