Files
main/programming/scm/git/files/93git-branch.sh
T
burakerturk 723ef4239b git add repo
2015-07-16 00:43:28 +03:00

6 lines
179 B
Bash

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