PROMPT="%F{$c}>>> $hist"
;;
*)
- echo "Unknown prompt mode $m"
+ echo -E "Unknown prompt mode $m"
return
;;
}
- PROMPT="$PROMPT%(1j,%F{$c}%j,)$vicol%#%F{$p}%n%F{$n}@%F{$p}%2m%(?..%F{$n}/%F{$r}\$?)%F{$n}: "
+ PROMPT="$PROMPT%(1j,%F{$c}%j,)$vicol%#%F{$p}%n%F{$n}@%F{$p}%2m%(?..%F{$n}/%F{$r}%?)%F{$n}: "
POSTEDIT="$(print -P "%F{$n}%f")"
autoload -Uz vcs_info
zstyle ':vcs_info:git*' get-revision true
}
function prompt_arrows_preview {
- if (( ! $#* )); then
- prompt_preview_theme arrows 2line
- print '\n'
- prompt_preview_theme arrows right
- print
- else
- prompt_preview_theme arrows "$@"
- print
- fi
+ if (( ! $#* )) {
+ prompt_preview_theme arrows 2line
+ print '\n'
+ prompt_preview_theme arrows right
+ print
+ } else {
+ prompt_preview_theme arrows "$@"
+ print
+ }
}
function +vi-prompt_arrows_revertfix() {