From: Michael Prokop Date: Mon, 22 Oct 2007 08:18:50 +0000 (+0200) Subject: /etc/zsh/zshrc: enable transient_rprompt only for zsh >= 4.1 X-Git-Tag: 0.3.36~2 X-Git-Url: http://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=0e5d4b27a71e867d3f96e36d94d90514aeb7fdfd /etc/zsh/zshrc: enable transient_rprompt only for zsh >= 4.1 --- diff --git a/debian/changelog b/debian/changelog index 2f730bc..6693d5b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +grml-etc-core (0.3.36) unstable; urgency=low + + * /etc/zsh/zshrc: enable transient_rprompt only for zsh >= 4.1. + + -- Michael Prokop Mon, 22 Oct 2007 10:18:26 +0200 + grml-etc-core (0.3.35) unstable; urgency=low * /etc/zsh/zshrc: support displaying version control information inside diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 47dfa2e..c740a02 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -136,6 +136,7 @@ # check for versions (compatibility reasons) if autoload is-at-least && is-at-least 2>/dev/null ; then is4() { is-at-least 4 } + is41() { is-at-least 4.1 } is42() { is-at-least 4.2 } else is4(){ @@ -698,7 +699,7 @@ fi # precmd () { setopt promptsubst; [[ -o interactive ]] && jobs -l; # make sure to use right prompt only when not running a command - is4 && setopt transient_rprompt + is41 && setopt transient_rprompt is4 && [[ -z $NOPRECMD ]] && precmd () { [[ -n $NOPRECMD ]] && return 0