.profile: Show hostname in SSH sessions

This commit is contained in:
Salt 2020-04-03 03:50:42 -05:00
parent dafd147869
commit b80531fb4c

View File

@ -292,7 +292,7 @@ _ps1bash() {
unset prefix
# Alert if in an SSH session
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
prefix="${fg_bold}${fg_red}ssh${r}${fg_red}:${r}${prefix}"
prefix="${fg_bold}${fg_red}$(hostname -s)${r}${fg_red}:${r}${prefix}"
fi
# Change PWD color depending on the shell
case $0 in