Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Jan 2000 10:16:35 -0800
From:      R Joseph Wright <rjoseph@nwlink.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: window manager question
Message-ID:  <3874DC03.70FBE64E@nwlink.com>
References:  <Pine.BSF.4.10.10001061248350.29142-100000@merlin.onsea.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Cliff Rowley wrote:
> 
> > No, because that has another meaning.  It causes the prompt to show the
> > history number of the command you've typed in.
> 
> Not here it doesnt, it shows as #
> 
> I am a boring sod and I have: PS1="[\u@\h]# "
> 
> Prompt is [dozprompt@merlin]#

I got it to work doing:  PS1="\u@\h\w\]# "

This gives me:  root@mammalia~# which is exactly what I want.  I did it
using two brackets like you at first, but it gave me [root@mammalia~# . 
Is that strange? 

Without the bracket it gives the history number of the command, for
example: root@mammalia~3

-- 
Best Regards, Joseph

	You will do foolish things,	
     but do them with enthusiasm.  Colette.


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?3874DC03.70FBE64E>