I am wanting to know how I can display the TTY a terminal is currently using in the window name of the Terminal. I don't see any options in Terminal Preferences to display such thing on the Terminal window name with gnome-terminal.
I ask this because I was using Terminal on Mac OS X and I could set in the preferences to display what TTY the terminal is currently using, and just wondering how I could do the same for gnome-terminal, and yes I do know that Terminal on both Mac and Linux are completely different, yet they share the same UNIX command line stuff.
Is there something I could add to .bashrc or .profile to append this to the window name of Terminal? or perhaps something I could add to dconf to make this a custom option?
I do know that typing tty is an option or ps -a to display that, but that only displays inside the terminal window output, but in the window name I'd like it to show all the time and for every new window or tab that opens ie; /dev/tty/1, /dev/tty/2, /dev/tty/3 etc… appended to the Window title like these for example.
Terminal | tty/1
Terminal, tty/2
