2012-02-01 14:53:17 +04:00
|
|
|
# Include the current git branch in the prompt
|
|
|
|
|
|
|
|
if type __git_ps1 &>/dev/null; then
|
2021-04-22 08:56:33 +00:00
|
|
|
export PS1="$(echo -n "$PS1" | sed "s| \\\w| \\\w\$(type __git_ps1 \&>/dev/null \&\& __git_ps1 \" (%s)\")|")"
|
2012-02-01 14:53:17 +04:00
|
|
|
fi
|