From owner-freebsd-questions Thu Jul 20 22: 5: 0 2000 Delivered-To: freebsd-questions@freebsd.org Received: from theory1.physics.iisc.ernet.in (theory1.physics.iisc.ernet.in [144.16.71.20]) by hub.freebsd.org (Postfix) with SMTP id 3389837B522 for ; Thu, 20 Jul 2000 22:04:55 -0700 (PDT) (envelope-from rsidd@physics.iisc.ernet.in) Received: (qmail 63906 invoked from network); 21 Jul 2000 05:04:52 -0000 Received: from sys3.physics.iisc.ernet.in (144.16.71.27) by theory1.physics.iisc.ernet.in with SMTP; 21 Jul 2000 05:04:52 -0000 Received: (qmail 9898 invoked by uid 211); 21 Jul 2000 05:04:51 -0000 Date: Fri, 21 Jul 2000 10:34:51 +0530 From: Rahul Siddharthan To: John Baldwin Cc: djkanter@northwestern.edu, freebsd-questions@FreeBSD.ORG Subject: Re: Setting shell prompt for C-shell Message-ID: <20000721103451.A9878@physics.iisc.ernet.in> Mail-Followup-To: John Baldwin , djkanter@northwestern.edu, freebsd-questions@FreeBSD.ORG References: <20000721095347.A9557@physics.iisc.ernet.in> <200007210438.VAA38937@pike.osd.bsdi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <200007210438.VAA38937@pike.osd.bsdi.com>; from jhb@pike.osd.bsdi.com on Thu, Jul 20, 2000 at 09:38:22PM -0700 X-Operating-System: Linux 2.0.31 i486 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Baldwin said on Jul 20, 2000 at 21:38:22: > > > and > > ~ > (with tcsh on the same machine) > > Try changing to a different directory, then read the manpage for tcsh. :) Yes, sorry I wasn't very bright this morning. > Basically, %~ is like %/, but it will use ~ for your home directory, and > ~foo for foo's home directory instead of the actual path. If you typically > log into several machines, then a prompt such as "%B%n@%m%b:%~\n%# " can > be useful. It would render as follows: > > john@john:~ > > > but with the username and machine in bold. Looks useful, thanks. Rahul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message