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

%<< and %{%}



I heard that the combination of %<< and %{%} in prompt doesn't work well.

Z(2):akr@is27e1u11% Src/zsh -f
is27e1u11% cd /usr/local/bin
is27e1u11% PS1=$'[%20<..<%/]'
[/usr/local/bin]PS1=$'[%20<..<%/]%{\e[33m%}'
[../local/bin]

Hm.  The string in %{..%} is affected to truncation.  It is wrong.

zsh-3.0.7 works well.

Z(2):akr@is27e1u11% zsh-3.0.7 -f
is27e1u11% cd /usr/local/bin
is27e1u11% PS1='[%20<..<%/]' 
[/usr/local/bin]PS1='[%20<..<%/]%{^[[33m%}'
[/usr/local/bin]
-- 
Tanaka Akira



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