Skip to content

Instantly share code, notes, and snippets.

@aodag
Last active August 29, 2015 14:26
Show Gist options
  • Save aodag/5ce1893b127a6c65113d to your computer and use it in GitHub Desktop.
Save aodag/5ce1893b127a6c65113d to your computer and use it in GitHub Desktop.
ghq プロジェクトへの移動を pecoで選択
function g
{
cd $(ghq list -p | peco)
}
cd-ghq () {
project=$(ghq list | peco)
if [ -n "$project" ] ; then
cd $HOME/src/$project
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment