http://mediadoneright.com/content/ultimate- git-ps1-bash-prompt
Обратите внимание на то, что внизу они не устанавливаются:
export PS1 = "\ n ...` __git_ps1 ...
Установите его на этот больной кусок задницы работа:
export PS1=$IBlack$Time12h$Color_Off'$(git branch &>/dev/null;\
if [ $? -eq 0 ]; then \
echo "$(echo `git status` | grep "nothing to commit" > /dev/null 2>&1; \
if [ "$?" -eq "0" ]; then \
# @4 - Clean repository - nothing to commit
echo "'$Green'"$(__git_ps1 " (%s)"); \
else \
# @5 - Changes to working tree
echo "'$IRed'"$(__git_ps1 " {%s}"); \
fi) '$BYellow$PathShort$Color_Off'\$ "; \
else \
# @2 - Prompt when not in GIT repo
echo " '$Yellow$PathShort$Color_Off'\$ "; \
fi)'
Соответствующими битами являются "$ (__ git_ps1" (% s) "или" $ (__ git_ps1 "{% s}"
Судя по всему, это "набор инструментов рабочего стола".