diff --git a/bash.bashrc b/bash.bashrc index 610dd16..de82392 100644 --- a/bash.bashrc +++ b/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