We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d070ca commit dfa084fCopy full SHA for dfa084f
.bashrc
@@ -137,7 +137,7 @@ then
137
fi
138
139
export PS0='\[\e[0;36m\]\t\[\e[0m\] \[\e[0;33m\]\u@\[\e[0m\]\[\e[0;31m\]$SERVER_NAME\[\e[0m\] {\[\e[1;33m\]\w\[\e[0m\]}\[\e[0;36m\]%{(%b\[\e[1;37m\]%m\[\e[0;36m\])[%u%c%f%t\[\e[0;36m\]]%}\[\e[0m\] $ '
140
-if [[ -x $(which gitprompt.pl 2>/dev/null) ]]; then
+if [[ -x $(which git) && -x $(which gitprompt.pl 2>/dev/null) ]]; then
141
export PROMPT_COMMAND=$PROMPT_COMMAND' export PS1=$(gitprompt.pl statuscount=1 u=%[%e[31m%] c=%[%e[32m%] f=%[%e[1\;37m%])'
142
143
0 commit comments