ghq
gitリポジトリをcloneしたときにURLに基づいてディレクトリを整理してくれる
セットアップ
~/.gitconfig に以下を追記
code:.gitconfig
root = ~/src
~/.bash_profile に以下を追記
code:.bash_profile
export GOPATH=$HOME
export PATH=$PATH:$HOME/bin
インストール
go get github.com/motemen/ghq
ghq get github.com/motemen/ghq
~/src/github.com/motemen/ghq
のようなディレクトリにgit cloneされる
ghq get したときと go getしたときで同じディレクトリになるので便利