1
<

zsh prompt not escaped properly

view story
linux-howto

http://unix.stackexchange.com – This is my current prompt definition: PROMPT='%(?..%F{red}%?%f:)%F{blue}%n%f:%F{green}%{${PWD/#$HOME/~}%} %(!.%F{red}.%f)%# %f' The cursor sometimes starts one character behind the actual prompt, for example when searching the history using ctrlR. (HowTos)