I just added it to the end of .bashrc. Then I sourced the file and ssh'd to a remote host, but the title in the tab stayed the same. Am I missing something?
I had a look at my current machine, it seems that Karmic has a similar but different section in their bash setting s file (which is now called .bashrc.gz apparently)
Check for a section like this in that file;
# If this is an xterm set the title to user@host:dir case "$TERM" in xterm*|rxvt*) PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" ;; *) ;; esac
2 comments:
That does not seem to do anything for me.
I just added it to the end of .bashrc. Then I sourced the file and ssh'd to a remote host, but the title in the tab stayed the same. Am I missing something?
Josh
I had a look at my current machine, it seems that Karmic has a similar but different section in their bash setting s file (which is now called .bashrc.gz apparently)
Check for a section like this in that file;
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
I've marked this post as depreciated.
Post a Comment