help / color / Atom feed
* Strange prompt behaviour with %?
@ 2019-10-16 14:31 Klaus Ethgen
  0 siblings, 0 replies; only message in thread
From: Klaus Ethgen @ 2019-10-16 14:31 UTC (permalink / raw)
  To: zsh-users

Hi folks,

I have a very strange behaviour.

I have set:
   PS1="%{$fg_no_bold[$_usercolor]%}%m: %{$fg_bold[blue]%}?%(?.%{$fg_no_bold[green]%}.%{$fg_bold[red]%})%?%2(L. %{$fg_bold[blue]%}#%{$fg_bold[magenta]%}%L.) %{$fg_bold[blue]%}!%{$fg_bold[magenta]%}%h%1(j. %{$fg_bold[blue]%}j%{$fg_bold[magenta]%}%j.)%E
%{$fg_bold[blue]%}%60<..<%~%<<\${vcs_info_msg_0_}> %{$reset_color%}"

I want to have an eye on the part

When I execute "perl -e 'exit 2;'" several times, I get sometimes a 0
and sometimes a 2. (The same with "/bin/false" but there it doesn't seem
to be wrong that often.

Does anybody have an explanation for this behaviour?

-- Klaus
Klaus Ethgen                                       http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16            Klaus Ethgen <Klaus@Ethgen.ch>
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-16 14:31 Strange prompt behaviour with %? Klaus Ethgen


Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-users

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git