Skip to content

Commit

Permalink
Fixed prompt for non-git boxen
Browse files Browse the repository at this point in the history
  • Loading branch information
geofffranks committed Jun 3, 2015
1 parent 9d070ca commit dfa084f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ then
fi

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

Expand Down

0 comments on commit dfa084f

Please sign in to comment.