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

Re: Adding a new-line to the prompt.



Alex Polite <notmyprivateemail@xxxxxxxxx>:
> Howdy.
> 
> This is my first day of zsh after some approx 2300 days of bash. First thing
> I have to do is recreate my bash prompt which ends in a newline. Tried
> inserting a newline with "\n". That didn't do the trick. Googled this for
> about an hour but still couldn't solve it.

Hey Alex,
try this:

PROMPT=$'line0\nline1\nline2-%~%% '

I think $'' quoting is described in zshmisc(1) /QUOTING.

Regards, Frank



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