From: "Lawrence Velázquez" <larryv@zsh.org>
To: "Frank Schwidom" <schwidom@gmx.net>
Cc: zsh-users@zsh.org
Subject: Re: Hi, can someone help me to convert my bash PS1 to zsh?
Date: Mon, 21 Mar 2022 14:56:09 -0400 [thread overview]
Message-ID: <d78492a1-dd18-4e8c-9f95-91092010bad5@www.fastmail.com> (raw)
In-Reply-To: <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
prev parent reply other threads:[~2022-03-21 22:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-21 16:06 Frank Schwidom
2022-03-21 16:57 ` Mikael Magnusson
2022-03-21 17:47 ` Frank Schwidom
2022-03-21 17:59 ` Mikael Magnusson
2022-03-21 18:51 ` Roman Perepelitsa
2022-03-21 21:43 ` Bart Schaefer
2022-03-22 0:36 ` Frank Schwidom
2022-03-21 18:11 ` Bart Schaefer
2022-03-21 18:17 ` Frank Schwidom
2022-03-21 18:56 ` Lawrence Velázquez [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d78492a1-dd18-4e8c-9f95-91092010bad5@www.fastmail.com \
--to=larryv@zsh.org \
--cc=schwidom@gmx.net \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).