.profile: Make prefix nicer

This commit is contained in:
Salt 2018-12-15 20:46:19 -06:00
parent 13aac78080
commit f6767e60f5

View File

@ -176,10 +176,10 @@ _ps1() {
# Yes, shellcheck. I get it. That's what the or is for
#shellcheck disable=2039
if [ "$HOSTNAME" = "phys-saltshaker" ] || [ "$(hostname)" = "phys-saltshaker" ]; then
prefix="${fg_bold}${fg_yellow}ss${r}"
prefix="${fg_bold}${fg_grey}ss${r}${fg_grey}:${r}"
fi
if [ "$SSH_CLIENT" ]; then
prefix="${fg_bold}${fg_red}$(hostname)${r}${fg_red}:${prefix}"
prefix="${fg_bold}${fg_red}$(hostname)${r}${fg_red}:${r}${prefix}"
fi
# Append a "restricted" prefix in rbash
if [ "$0" = "rbash" ]; then