Skip to content

Instantly share code, notes, and snippets.

@yimajo
Created June 30, 2014 10:28
Show Gist options
  • Save yimajo/91cf9ef030c7a79500f0 to your computer and use it in GitHub Desktop.
Save yimajo/91cf9ef030c7a79500f0 to your computer and use it in GitHub Desktop.
bashでgitのリポジトリを表示
# git settings
source /usr/local/git/contrib/completion/git-prompt.sh
source /usr/local/git/contrib/completion/git-completion.bash
git_ps1_showdirtystate=true
export PS1='\h\[\e[0;32m\]\[\e[00m\]:\[\033[34m\]\W \[\033[32m\]\u\[\033[31m\]$(__git_ps1)\[\033[00m\]\$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment