I have a zsh prompt script that uses print -P
to perform prompt expansion. The script does not work properly on a particular remote system that I ssh into. The color directives in the prompt print commands are not being expanded:
$ print -P '%F{blue}this should be blue'
{blue} this should be blue
Is there a way around this? I'm not sure why it should matter that I am using a remote system, since the display is happening through my local terminal emulator (iTerm2).
echo $ZSH_VERSION
) are you using on this particular system? And does `print -P '%4Fthis should be blue' work better?