build/scripts/ssh-title.sh
2016-03-06 14:13:34 +03:00

6 lines
No EOL
174 B
Bash

if [ -n "$PS1" ] && ( [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ] ); then
tput tsl > /dev/null
if [ "$?" -eq 0 ]; then
echo `tput tsl` `whoami`@`hostname` `tput fsl`
fi
fi