Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use 'precmd' and 'postcmd' in tcsh' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use 'precmd' and 'postcmd' in tcsh
Authored by: liyanage on May 27, '02 03:44:22PM

Wow this stuff is awesome, exactly what I always wanted!!

I removed the date as I don't need that, but I prefer to see the "~" sign in place of my home directory in the path as that makes the string a bit shorter. So I changed the line to:

alias precmd 'echo -n "^[]0;${cwd}^G" | sed -e "s%$HOME%~%"'

I noticed however that sometimes newly opened terminal windows close again immediately. When that happens, I have to hit Cmd-n again, sometimes twice or three times... Anybode else seen this?



[ Reply to This | # ]