Browse Source

local hostname

master
pvincent 5 years ago
parent
commit
5fc6cb1fd8
  1. 14
      bash.bashrc

14
bash.bashrc

@ -79,7 +79,19 @@ __prompt_command() {
PROMPT='#'
fi
PS1+="${Gra}@${Gre}\h ${Cya}\w${R}"
PS1+="${Gra}@"
case ${host:0:4} in
'beta')
PS1+="${Ora}";;
'prod')
PS1+="${Red}";;
*)
PS1+="${R}";;
esac
PS1+="\h"
PS1+=" ${Cya}\w${R}"
if [ $EXIT != 0 ]; then
PS1+="$Mag" # Add red if exit code non 0

Loading…
Cancel
Save