csh is root's shell?

Ulf Zimmermann ulf at Alameda.net
Thu Oct 7 10:49:59 PDT 2004

On Thu, Oct 07, 2004 at 09:44:52AM -0700, Don Lewis wrote:
> This is what I use:
>         set prompt = '%m:%c4 %h%#'
>         if ($?TERM && $TERM == xterm) then
>                 set prompt='%{\033]0;%n@%m:%c5\007%}%m:%c %h%#'
>         endif
> It adds the last few components of $cwd and the history event number to
> the prompt.  When running in an xterm, it puts the username, hostname,
> and the last part of $cwd in the xterm title.

A thing I use under tcsh is 'alias precmd echo -n "^[]2;$HOST^G"'
Bundled with an if statement and either excluding cons25 (you are
on the console) or only enabling it when $TERM is set to certain
terminals, it will print the current host into your window bar, like
under SecureCRT and xterm.

Regards, Ulf.

Ulf Zimmermann, 1525 Pacific Ave., Alameda, CA-94501, #: 510-865-0204
You can find my resume at: http://seven.Alameda.net/~ulf/resume.html

More information about the freebsd-current mailing list