echo -e "\033]2;!^\007"
This can be set up as an alias (say, as "t"):
alias t 'echo -e "\033]2;\!^\007"'
(Taken from a comment in this post).
Update: To do the same thing in LXTerminal (used in lxde):
echo -ne "\033]0;"WindowTitle"\007"(Taken from http://ubuntuforums.org/showthread.php?t=448614).
Or as a function in .bashrc (since bash aliases don't take parameters):
t() {
echo -ne "\033]0;$*\007"
}
No comments:
Post a Comment