Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jul 2000 10:34:51 +0530
From:      Rahul Siddharthan <rsidd@physics.iisc.ernet.in>
To:        John Baldwin <jhb@pike.osd.bsdi.com>
Cc:        djkanter@northwestern.edu, freebsd-questions@FreeBSD.ORG
Subject:   Re: Setting shell prompt for C-shell
Message-ID:  <20000721103451.A9878@physics.iisc.ernet.in>
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
References:  <20000721095347.A9557@physics.iisc.ernet.in> <200007210438.VAA38937@pike.osd.bsdi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000721103451.A9878>