Skip to content

Commit dfa084f

Browse files
committed
Fixed prompt for non-git boxen
1 parent 9d070ca commit dfa084f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.bashrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ then
137137
fi
138138

139139
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
140+
if [[ -x $(which git) && -x $(which gitprompt.pl 2>/dev/null) ]]; then
141141
export PROMPT_COMMAND=$PROMPT_COMMAND' export PS1=$(gitprompt.pl statuscount=1 u=%[%e[31m%] c=%[%e[32m%] f=%[%e[1\;37m%])'
142142
fi
143143

0 commit comments

Comments
 (0)