由买买提看人间百态

topics

全部话题 - 话题: postcmd
(共0页)
c*r
发帖数: 278
1
man tcsh:
postcmd Runs before each command gets executed.
> alias postcmd 'echo -n "^[]2\;\!#^G"'
then executing vi foo.c will put the command string
in the xterm title bar.
'^[' and '^G' are from ctrl-v + ESC and ctrl-v +ctrl-g
c*r
发帖数: 278
2
for tcsh, you can alias "postcmd".
t*****t
发帖数: 72
3
what's that? I type postcmd in unix, it returns:
Command not found.
(共0页)