Changing terminal title when in ssh

This commit is contained in:
2013-02-22 14:35:48 +03:00
parent 73b1961e1c
commit d38944d7c7
+14
View File
@@ -150,6 +150,20 @@ function fin() {
find "$@" -iname "*$filename*"
}
function title() {
echo -ne "\033]0;$*\007"
}
function ssh() {
if [ $# -eq 1 ]; then
title "ssh:$1"
else
title "ssh"
fi
$(which ssh) "$@"
title "Terminal"
}
if [ -r ~/.rc_local ]; then
. ~/.rc_local
fi