Skip to content

Instantly share code, notes, and snippets.

@raphtlw
Created June 4, 2024 18:26
Show Gist options
  • Save raphtlw/749c268e50aba858ba538ce4286697ea to your computer and use it in GitHub Desktop.
Save raphtlw/749c268e50aba858ba538ce4286697ea to your computer and use it in GitHub Desktop.
Fish-shell command for quick repository navigation from the command line
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