Last active
August 29, 2015 14:26
-
-
Save aodag/5ce1893b127a6c65113d to your computer and use it in GitHub Desktop.
ghq プロジェクトへの移動を pecoで選択
This file contains 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 g | |
{ | |
cd $(ghq list -p | peco) | |
} |
This file contains 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
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