I'm trying to setup a multiple line PS1, for zsh, but \n doesn't was parsed by zsh,
\n
PS1="%~\n %> "
How should I set it up?
Like this (I know, looks awkward):
PS1="%~ %> "
PS1="firstline secondline "
or
PS1=$'Hi Joe,\nwhat now?%# '
Taken from FAQ, item 3.13
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
By posting your answer, you agree to the privacy policy and terms of service.
tagged
asked
6 months ago
viewed
190 times
active
Get the weekly newsletter!
see an example newsletter
By subscribing, you agree to the privacy policy and terms of service.