[clug] Programmable title
eyal at eyal.emu.id.au
Fri Oct 17 06:37:44 MDT 2014
tty | cut -c 6-8 | sed 's/pts/pseudo terminal/;s/tty/terminal/'
On 17/10/14 23:24, Bryan Kilgallin wrote:
> 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-
> 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.
Eyal Lebedinsky (eyal at eyal.emu.id.au)
More information about the linux