Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Aug 1999 03:58:14 +0100
From:      Mark Ovens <mark@ukug.uk.freebsd.org>
To:        Subscriber to freebsd-questions <fbsdmail@sign.chg.ru>
Cc:        Kenneth Legg <sce04020@mail.wvnet.edu>, freebsd-questions@freebsd.org
Subject:   Re: Prompt
Message-ID:  <19990815035813.C267@marder-1>
In-Reply-To: <Pine.BSF.4.05.9908150645340.84067-100000@sign.chg.ru>; from Subscriber to freebsd-questions on Sun, Aug 15, 1999 at 06:54:16AM %2B0400
References:  <99081410242902.00286@myname.my.domain> <Pine.BSF.4.05.9908150645340.84067-100000@sign.chg.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Aug 15, 1999 at 06:54:16AM +0400, Subscriber to freebsd-questions wrote:
> 
> 
> On Sat, 14 Aug 1999, Kenneth Legg wrote:
> 
> > How do you change the prompt to show the current directory?
> > 
> > 
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message
> > 
> 
> If you use csh or tcsh, type this line in your .cshrc file :
> 
>  set prompt = "`hostname -s`: %~ > "
> 
> This also adds information about hostname (useful thing, when you have
> accounts on several boxes).

Or add the following alias:

alias   cd      'cd \!*;set prompt="`hostname`:`pwd`{!}% "'


> 				Andrew.
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 

-- 
      FreeBSD - The Power To Serve http://www.freebsd.org
      My Webpage http://http://ukug.uk.freebsd.org/~mark/
_______________________________________________________________
Mark Ovens, CNC Apps Engineer, Radan Computational Ltd. Bath UK
CAD/CAM solutions for Sheetmetal Working Industry
mailto:mark@ukug.uk.freebsd.org              http://www.radan.com



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?19990815035813.C267>