.profile: Show hostname in SSH sessions
This commit is contained in:
parent
dafd147869
commit
b80531fb4c
2
.profile
2
.profile
@ -292,7 +292,7 @@ _ps1bash() {
|
|||||||
unset prefix
|
unset prefix
|
||||||
# Alert if in an SSH session
|
# Alert if in an SSH session
|
||||||
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
|
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
|
fi
|
||||||
# Change PWD color depending on the shell
|
# Change PWD color depending on the shell
|
||||||
case $0 in
|
case $0 in
|
||||||
|
Loading…
Reference in New Issue
Block a user