Created
June 4, 2024 18:26
-
-
Save raphtlw/749c268e50aba858ba538ce4286697ea to your computer and use it in GitHub Desktop.
Fish-shell command for quick repository navigation from the command line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ghq-repo --description 'Navigate to remote repository' | |
set path (ghq list --full-path --bare | fzf --delimiter / --with-nth -1 --preview 'echo {}' --preview-window down:2) | |
if not test -z "$path" | |
cd "$path" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment