Skip to content

Instantly share code, notes, and snippets.

@iorionda
Last active November 10, 2015 10:09
Show Gist options
  • Save iorionda/abde03174d907048ea9f to your computer and use it in GitHub Desktop.
Save iorionda/abde03174d907048ea9f to your computer and use it in GitHub Desktop.
ghq list のブランチに移動する
function peco-select-ghq-repository
set -l query (commandline)
if [ -n $query ]
ghq list -p | peco --query $query | read line
else
ghq list -p | tail -r | peco | read line
end
if [ $line ]
cd $line
end
commandline -f repaint
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment