Hello all,
I'm trying to setup window title update when I run programs which doesn't update title by themselves.
For example, when I start
So, I solved this problem by adding following lines to ~/.tcshc:
In case of the program doesn't update title,
Everything works fine except one very annoing thing: in the tcsh history some commands saved two times. First time - command with arguments, second time - command without aguments + #+number.
Is there a way to solve this problem?
Thank you!
I'm trying to setup window title update when I run programs which doesn't update title by themselves.
For example, when I start
vim
, it updates title to something like: testfile.txt (~) VIM. But when I start top
, window title stay unchanged. In case I have a lot of minimized terminal emulator windows and they have the same title, it's difficult enough to find where exatly the window with needed program running.So, I solved this problem by adding following lines to ~/.tcshc:
Code:
if ($?prompt3) then
set echo_style=both
alias postcmd 'echo -n "\033]2;${HOST}: \!#:0:q\007"'
endif
In case of the program doesn't update title,
tcsh
changing it to: $HOST + command name without arguments. $HOST is needed to indicate on which one server command is running.Everything works fine except one very annoing thing: in the tcsh history some commands saved two times. First time - command with arguments, second time - command without aguments + #+number.
Code:
$ history 5
4928 8:59 ls -la
4929 8:59 ls#+1675925966
4930 8:59 dmesg
4931 8:59 history 5
Is there a way to solve this problem?
Thank you!