#Warp breaks when i try to change PS1 in zsh

3 messages · Page 1 of 1 (latest)

past peak
#

I have this line that breaks warp in my zshrc.

PS1="%{$fg[cyan]%}% %1d$ %{$reset_color%}%"

Any idea why?

willow jetty
#

Hey @past peak i did a bit of troubleshooting and you should add a space after the last %, but before the closing "

PS1="%{$fg[cyan]%}% %1d$ %{$reset_color%}% "

That should fix the issue. I gather the % which prints a space in the prompt, needs a space after so that it loads correctly in Warp.

past peak
#

how come this isn't an issue in other terms?