2013-04-24 16:58:31 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
function term_change_title
|
|
|
|
{
|
|
|
|
case $TERM in
|
|
|
|
# Change the window title of X terminals
|
|
|
|
xterm*|rxvt*|urxvt*|Eterm)
|
2013-12-05 13:41:08 +01:00
|
|
|
echo -ne "\033]0;${1}\007"
|
2013-04-24 16:58:31 +02:00
|
|
|
;;
|
|
|
|
|
|
|
|
# Change the window title of screen terminals
|
|
|
|
screen*)
|
2013-12-05 13:41:08 +01:00
|
|
|
echo -ne "\033k${1}\033\\"
|
2013-04-24 16:58:31 +02:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
}
|