Skip to content

Instantly share code, notes, and snippets.

@yoshiori
Created June 18, 2015 10:39
Show Gist options
  • Save yoshiori/cd7842dde21d2dd762af to your computer and use it in GitHub Desktop.
Save yoshiori/cd7842dde21d2dd762af to your computer and use it in GitHub Desktop.
function peco_select_repository
if test (count $argv) = 0
set peco_flags --layout=bottom-up
else
set peco_flags --layout=bottom-up --query "$argv"
end
ghq list -p | peco $peco_flags | read line
if [ $line ]
cd $line
commandline -f repaint
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment