/etc/zsh/zshrc: enable transient_rprompt only for zsh >= 4.1
authorMichael Prokop <mika@grml.org>
Mon, 22 Oct 2007 08:18:50 +0000 (10:18 +0200)
committerMichael Prokop <mika@grml.org>
Mon, 22 Oct 2007 08:18:50 +0000 (10:18 +0200)
debian/changelog
etc/zsh/zshrc

index 2f730bc..6693d5b 100644 (file)
@@ -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 <mika@grml.org>  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
index 47dfa2e..c740a02 100644 (file)
 # 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