This is the mail archive of the
mailing list for the Cygwin project.
Re: Prompt issue within cygwin
Ugh, top-posting... Reformatted.
On Mon, 23 Jan 2006, Zach Gelnett wrote:
> On 1/23/06, Igor Peshansky <pechtcha@XX.XXX.XXX> wrote:
> > On Mon, 23 Jan 2006, Zach Gelnett wrote:
> > > Here is what i am seeing:
> > >
> > > v468929@TRD-CAX40JXD ~> >
> > >
> > > the duplicate ">" is the issue. Here is my PS1:
> > >
> > > \[\033]61;\u@\H\007\u@\H \W>
> > >
> > > as you can see, only a single ">"
> > > [snip]
> > You have a bug in your PS1 value. Bash uses \[ and \] to delimit
> > non-printable sequences in the prompt. So, your PS1 should at least be
> > \[\033]61;\u@\H\007\]\u@\H \W>
> > ^^
> > Note the closing '\]'.
> > Also, ESC] doesn't look like a valid ANSI escape sequence. What
> > exactly are you trying to accomplish with your prompt?
> > Igor
> That was precicesly my issue. Thank you very much, both issues (tab
> complete and dup > entries) are resolved!
> FYI, I'm just trying to have a prompt that says:
> username@hostname workingdir>
> this is because i login to multiple machines and use tabbed windows
> (available within mrxvt) to do this. i find having this prompt makes it
> quite easy to keep track of what env i'm logged into and where i'm at.
If that was all you wanted, you could have set PS1 to '\u@\H \W>'. Your
prompt tries to do more than that. I'm still unsure of what the initial
sequence of non-printing characters in your prompt is for.
BTW, forgot to mention: none of this is Cygwin-specific.
|\ _,,,---,,_ firstname.lastname@example.org | email@example.com
ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!)
|,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html