|
|
@ -63,7 +63,7 @@ __prompt_command() { |
|
|
|
local host=$container_hostname |
|
|
|
case ${host:0:4} in |
|
|
|
'beta') |
|
|
|
PS1+="${Ora}";; |
|
|
|
PS1+="${Yel}";; |
|
|
|
'prod') |
|
|
|
PS1+="${Red}";; |
|
|
|
*) |
|
|
@ -83,7 +83,7 @@ __prompt_command() { |
|
|
|
|
|
|
|
case ${HOSTNAME:0:4} in |
|
|
|
'beta') |
|
|
|
PS1+="${Ora}";; |
|
|
|
PS1+="${Yel}";; |
|
|
|
'prod') |
|
|
|
PS1+="${Red}";; |
|
|
|
*) |
|
|
@ -93,12 +93,6 @@ __prompt_command() { |
|
|
|
|
|
|
|
PS1+=" ${Cya}\w${R}" |
|
|
|
|
|
|
|
if [ $EXIT != 0 ]; then |
|
|
|
PS1+="$Mag" # Add red if exit code non 0 |
|
|
|
else |
|
|
|
PS1+="$Gra" |
|
|
|
fi |
|
|
|
|
|
|
|
if hash git 2>&-; then |
|
|
|
# git command exists |
|
|
|
|
|
|
@ -122,6 +116,12 @@ __prompt_command() { |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
if [ $EXIT != 0 ]; then |
|
|
|
PS1+="$Mag" # Add red if exit code non 0 |
|
|
|
else |
|
|
|
PS1+="$Gra" |
|
|
|
fi |
|
|
|
|
|
|
|
PS1+=" $PROMPT ${R}" |
|
|
|
} |
|
|
|
|
|
|
|