.profile: If we're not salt, alert us
This commit is contained in:
parent
53d253d3e0
commit
4a3c2e45ab
2
.profile
2
.profile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user