Loading

Paste #pxg8qhtoo

  1. # git completion with a script download from github
  2. source ~/git-completion.bash
  3. # alternative git completion via Apple
  4. # source /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-prompt.sh
  5.  
  6. # display current git branch in prompt
  7. alias __git_ps1="git branch 2>/dev/null | grep '*' | sed 's/* \(.*\)/(\1)/'"
  8. export PS1="\W\$(__git_ps1)\$ "
  9. # show branch name if changed
  10. export GIT_PS1_SHOWDIRTYSTATE=1

Comments