tcsh-org / tcsh

This is a read-only mirror of the tcsh code repository.
https://www.tcsh.org/
Other
238 stars 42 forks source link

title update #70

Open iron-udjin opened 1 year ago

iron-udjin commented 1 year ago

Hello,

OS: FreeBSD-13-STABLE tcsh: 6.22.04

I'm trying to set xterm window title for program which doesn't support title change. In ~/.tcshrc I have:

if ($?prompt3) then
    set echo_style=both
    alias postcmd 'echo -n "\033]2;${HOST}: \!#:0:q\007"'
endif

Everything works fine except one very annoying thing: in the tcsh history some commands saved two times. First time - command with arguments, second time - command without arguments + #+timestamp:

$ history 5
  4928    8:59    ls -la
  4929    8:59    ls#+1675925966
  4930    8:59    dmesg
  4931    8:59    history 5

Here is discussion regarding this problem on FreeBSD forum.

Is there a way to solve this problem?

Thank you!