From 4a3c2e45ab05c8beaaed791ca3dd07199713b095 Mon Sep 17 00:00:00 2001 From: Salt Date: Wed, 16 Sep 2020 11:50:14 -0500 Subject: [PATCH] .profile: If we're not salt, alert us --- .profile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.profile b/.profile index a95bdcd2..4e3cb48a 100755 --- a/.profile +++ b/.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