Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Aug 1999 09:53:01 -0700 (PDT)
From:      "Eric J. Schwertfeger" <ejs@bfd.com>
To:        Patrick Seal <patseal@hyperhost.net>
Cc:        Doug <Doug@gorean.org>, freebsd-questions@FreeBSD.ORG
Subject:   Re: Bash: space in cd arg bug?
Message-ID:  <Pine.BSF.4.05.9908250947130.29030-100000@harlie.bfd.com>
In-Reply-To: <19990825122646.A72342@hyperhost.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 25 Aug 1999, Patrick Seal wrote:

> On Wed, Aug 25, 1999 at 09:07:53AM -0700i, Doug wrote:
> > Patrick Seal wrote:
> > 
> > > Actually I just found the problem. I had been using my own version of cd to
> > > change my rxvt title to the current directory:
> > 
> > 	FYI, you don't really need to do that. Take a look at
> > http://freebsd.simplenet.com/Bash-prompts.txt.
> 
> I use a modified mandrake's purple prompt that gives me a lot of information.
> When Blackbox (my WM) is iconifying windows, it only keeps a list of what is
> iconified and puts it in a menu. It is much easier to distinguish:

I think that was his point.  You can do that by creative use of the
PS1 environmental variable, without needing a function.  Works for me
doing exactly what you are describing.

I can't remember the exact syntax, but it is something like 

PS1="\033]2;[\h:\u]\w> \007[\h:\u]\w> "

which puts the login name, host, and pwd in the title bar and in the
command prompt.



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?Pine.BSF.4.05.9908250947130.29030-100000>