Skip to content

Instantly share code, notes, and snippets.

@libitte
Last active August 29, 2015 13:59
Show Gist options
  • Select an option

  • Save libitte/10658743 to your computer and use it in GitHub Desktop.

Select an option

Save libitte/10658743 to your computer and use it in GitHub Desktop.
# git の branch 名を表示する方法
#.bashrc
# git settings
source /usr/local/etc/bash_completion.d/git-prompt.sh
source /usr/local/etc/bash_completion.d/git-completion.bash
GIT_PS1_SHOWDIRTYSTATE=true
export PS1='\[\033[32m\]\u@\h\[\033[00m\]:\[\033[34m\]\w\[\033[31m\]$(__git_ps1)\[\033[00m\]\$ '
-------
http://blog.ruedap.com/2011/07/06/mac-terminal-git-branch-name
http://sue445.hatenablog.com/entry/2012/08/30/005627
brew install git-completion.bash
https://github.com/git/git/blob/master/contrib/completion/git-completion.bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment