Date: Thu, 7 Oct 2004 10:49:58 -0700 From: Ulf Zimmermann <ulf@Alameda.net> To: Don Lewis <truckman@FreeBSD.org> Cc: freebsd-current@FreeBSD.org Subject: Re: csh is root's shell? Message-ID: <20041007174958.GW66377@seven.alameda.net> In-Reply-To: <200410071644.i97Giq5a058914@gw.catspoiler.org> References: <136a340a041007045538093bfd@mail.gmail.com> <200410071644.i97Giq5a058914@gw.catspoiler.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041007174958.GW66377>
