From owner-freebsd-current@FreeBSD.ORG Thu Oct 7 17:49:59 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6BA8C16A4CE; Thu, 7 Oct 2004 17:49:59 +0000 (GMT) Received: from seven.Alameda.net (seven.alameda.net [64.81.53.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FC8043D2D; Thu, 7 Oct 2004 17:49:59 +0000 (GMT) (envelope-from ulf@Alameda.net) Received: by seven.Alameda.net (Postfix, from userid 1000) id DC2A63A212; Thu, 7 Oct 2004 10:49:58 -0700 (PDT) Date: Thu, 7 Oct 2004 10:49:58 -0700 From: Ulf Zimmermann To: Don Lewis Message-ID: <20041007174958.GW66377@seven.alameda.net> References: <136a340a041007045538093bfd@mail.gmail.com> <200410071644.i97Giq5a058914@gw.catspoiler.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200410071644.i97Giq5a058914@gw.catspoiler.org> User-Agent: Mutt/1.4.2.1i Organization: Alameda Networks, Inc. X-Operating-System: FreeBSD 4.10-RELEASE-p2 cc: nkalev@gmail.com cc: rbgarga@gmail.com cc: freebsd-current@FreeBSD.org Subject: Re: csh is root's shell? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ulf@Alameda.net List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Oct 2004 17:49:59 -0000 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