[clug] Programmable title

Bryan Kilgallin bryan at netspeed.com.au
Fri Oct 17 06:24:46 MDT 2014


I have the following in the config.fish file.

function fish_title
     echo $_ 'shell '
     tty | cut -c 6-8
     echo ' on line '
     echo (tty) | cut -c 10-
end

So the terminal window title reads as follows.

"fish shell pts on line 0"

I would like that to substitute instead of "pts" rather "pseudo terminal".
In the case of being a "tty", then I'd like the title to say "terminal" 
instead.

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



More information about the linux mailing list