[clug] Window title

Bryan Kilgallin (iiNet) kilgallin at iinet.net.au
Sat Sep 16 09:06:58 UTC 2017


Problem solved.

> Whereas I have trained the fish shell to instead display this title.
> 
> Terminal-type terminal-number "displays the" foreground-program "program 
> running on the" hostname "computer."
> 
> How can I make bash do that? I presume that would be coded somewhere in 
> ".bashrc".

I cut the following out of the ".bashrc" file!

{
# If this is an xterm set the title to user at host:dir
case "$TERM" in
xterm*|rxvt*)
     PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
     ;;
*)
     ;;
esac

}
-- 
www.netspeed.com.au/bryan/



More information about the linux mailing list