From 0e5d4b27a71e867d3f96e36d94d90514aeb7fdfd Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 22 Oct 2007 10:18:50 +0200 Subject: [PATCH 1/1] /etc/zsh/zshrc: enable transient_rprompt only for zsh >= 4.1 --- debian/changelog | 6 ++++++ etc/zsh/zshrc | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) 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 -- 2.1.4