Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Fix quoting in `redhat' prompt



On 2012-02-13 at 20:57 +0100, Frank Terbeck wrote:
> Someone on IRC just noted, that when he's using the `redhat' prompt from
> zsh, that he's getting a "\$" prompt-mark instead of the "$" he was
> expecting. Turns out, that the quoting is a bit off (unless of course,
> the redhat prompt is *supposed* to look like that, which I can't quite
> believe).

The Centos prompt uses '$'/'#', per normal Bash convention.  I assume
that this matches RedHat.

> +  PS1='[%n@%m %1~]$ '

I suggest:
  PS1='[%n@%m %1~]%(#.#.$) '

-- 
https://twitter.com/syscomet



Messages sorted by: Reverse Date, Date, Thread, Author