Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jan 1998 01:12:59 -0500
From:      Norman C Rice <nrice@emu.sourcee.com>
To:        Laszlo Vagner <kf7nn@mutsgo.dyn.ml.org>
Cc:        questions@FreeBSD.ORG
Subject:   Re: prompt
Message-ID:  <19980121011259.23649@emu.sourcee.com>
In-Reply-To: <199801210552.XAA03492@mutsgo.dyn.ml.org>; from Laszlo Vagner on Tue, Jan 20, 1998 at 11:52:27PM -0600
References:  <199801210552.XAA03492@mutsgo.dyn.ml.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jan 20, 1998 at 11:52:27PM -0600, Laszlo Vagner wrote:
> I have been trying to figure out how to set my prompt for weeks
> but i just dont know the syntax.
> 
> if i use the shell sh and i want my prompt to be something like
> 
> hostname currentpath >
> 
> IE:
> 
> dopey /usr/local/etc >
> 
> what do i edit and what do i put in there.???
> 
> tried various stuff in .login, .cshrc and .profile such as
> "`hostname` %l > "
> 
> but it never changes from the $ prompt.
> 
> looking at the handbook nothing seems to work.
> 
> help anyone?
 
export PS1="`hostname` `pwd` > "

-- 
Regards,
Norman C. Rice, Jr.



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