93git-branch.sh 179 B

123456
  1. # Include the current git branch in the prompt
  2. if type __git_ps1 >/dev/null 2>/dev/null; then
  3. export PS1="$(echo -n "$PS1" | sed "s|\\\W\]|\\\W\$(__git_ps1 \" (%s)\")\]|")"
  4. fi