During the times of home office while working remotely on many FreeBSD hosts at once, it's not so easy to distinguish between the sessions. The proposed patch sets the title of xterm tab to ${HOST}:$cwd helping to figure out which session occupies which xterm window or terminal tab.
Details
- Reviewers
• hselasky rgrimes
Adding three lines to ~/.csrh on the remote machine will help when tcsh or csh is invoked in xterm- family terminal. The only drawback is that it slows down a bit appearing of the command prompt. Since {t,}csh it's not scripting but an interactive login shell it seems to be acceptable.
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Of course, it works with xfce4-terminal and others including terminal MATE, terminal Gnome, even vanilla xterm.
I strongly disagree with adding "site and user specific" tweaks to the dot.cshrc files. Further I note that a huge down side of systems that do this xterm tittle setting create very miss leading situations when the terminal disconnects for any reason (ie your xterm is now local, not remote). Some systems do infact try to clean that up in the logout scripts, but that doesnt work if your disconnected for any other reason. There is already a very clear default prompt setting that shows you the hostname of the system you are logged into.
Thank you for taking the time to take a look at this. It is appreciated. Probably better solution will be to add this as another fortune to /usr/share/games/fortune/freebsd-tips.