OK try these!
these are part of my .tcshrc on both Sun box and Debian
# set prompt & xterm title
switch ( $TERM )
case xterm:
case xterm-debian:
case xterm-color:
case rxvt:
case dtterm:
set prompt = "%{\033]0;%n@%m: %~\007%}%n@%m "
breaksw
default:
set prompt = "%n@%m %~ "
breaksw
endsw
and .zshrc which I use on most Debian box
case $TERM in
xterm|xterm-debian|xterm-color|rxvt|dtterm*)
precmd() {print -Pn "\e]0;%n@%m: %~\a"}
PS1="%n@%m "
;;
*)
PS1="%n@%m: %~ "
esac
Cheers,
Chanop
--
,-----------------------------------------------------------------------------.
| Chanop Silpa-Anan <Chanop.Silpa-Anan@syseng.anu.edu.au> |
| Australian National University |
| got sparetime ? |
| http://kenji.anu.edu.au/ |
| Debian GNU/BSD GPG key on request |
`-----------------------------------------------------------------------------'
Attachment:
pgpuu7gpQssMl.pgp
Description: PGP signature