Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Hi, can someone help me to convert my bash PS1 to zsh?
- X-seq: zsh-users 27596
- From: Lawrence Velázquez <larryv@xxxxxxx>
- To: "Frank Schwidom" <schwidom@xxxxxxx>
- Cc: zsh-users@xxxxxxx
- Subject: Re: Hi, can someone help me to convert my bash PS1 to zsh?
- Date: Mon, 21 Mar 2022 14:56:09 -0400
- Archived-at: <https://zsh.org/users/27596>
- In-reply-to: <20220321174741.GB1727@debian64>
- List-id: <zsh-users.zsh.org>
- References: <20220321160650.GA1727@debian64> <CAHYJk3S7XHDf98D3qCeC0bwmD3KqXqr52pX1xwm8Nnr=OFr1sg@mail.gmail.com> <20220321174741.GB1727@debian64>
On Mon, Mar 21, 2022, at 1:47 PM, Frank Schwidom wrote:
> I want to create a multiline prompt. I am missing the code for carriage
> return or newline.
>
> In bash my Prompt looks like:
>
> user@computer 2022-03-21 18:43:18:
> ~
> (ins)$
>
> This '(ins)' comes from readline in vi mode and tells me in which state I am.
>
> How can I create a newline in PS1?
Just insert an actual newline.
PS1='single-quoted stuff'$'\n''more single-quoted stuff'
--
vq
Messages sorted by:
Reverse Date,
Date,
Thread,
Author