.profile: If we're not salt, alert us

This commit is contained in:
Salt 2020-09-16 11:50:14 -05:00
parent 53d253d3e0
commit 4a3c2e45ab

View File

@ -335,6 +335,8 @@ _ps1bash() {
# Alert if in an SSH session
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
prefix="${fg_bold}${fg_red}$(hostname -s)${r}${fg_red}:${r}${prefix}"
elif [ "$USER" != "salt" ]; then
prefix="${fg_bold}${fg_yellow}$USERNAME${r}${fg_yellow}:${r}${prefix}"
fi
# Change PWD color depending on the shell
case $0 in