|>Hi,
|> I saw on recently someones system where they had the path displayed at
|>the top of the window.As one changed directory/file the path changed at
|>the top of the window too. This would be really handy for me as I'm doing
|>some development type stuff and typically have three or four windows going
|>at any one time, and of course I keep forgetting which file is in which
|>window. Can any one help?
Try the following (in ".cshrc") assuming you are using csh/tcsh:
if ($?DISPLAY && $?TERM) then
switch ($TERM)
case sun-cmd:
alias IHeader '/bin/echo "\033]L.../$cwd:t\033\\\c"'
alias cd 'cd \!*; Header ; IHeader'
alias pushd 'pushd \!*; Header ; IHeader'
alias popd 'popd \!*; Header ; IHeader'
alias pwd 'dirs ; Header ; IHeader' # can be used as a "refresh"
alias su 'su \!*; Header ; IHeader'
alias rlogin 'rlogin \!*; Header ; IHeader'
Header ; IHeader # initialize
breaksw
case sun:
#
# "sun" normally applies to the *console*. Don't do anything special
# in this case or there'll be trouble. Really, we should check the tty
# name for this because "sun" could also apply to shelltools.
#
alias pwd dirs
breaksw
case xterm:
# (may or may not need extra backslashes below)
alias IHeader '/bin/echo "\033]1;'`hostname`'\c"'
alias cd 'cd \!*; Header ; IHeader'
alias pushd 'pushd \!*; Header ; IHeader'
alias popd 'popd \!*; Header ; IHeader'
alias pwd 'dirs ; Header ; IHeader'
alias su 'su \!*; Header ; IHeader'
alias rlogin 'rlogin \!*; Header ; IHeader'
Header ; IHeader # initialize
breaksw
default:
alias pwd dirs
endsw
endif
Hugh.
--
| SRAM Design, Sun Microelectronics, Sun Microsystems, Inc. |
| Speaking for myself, not for Sun Microsystems. |