/etc/zsh/zshenv: switch direction of check for lesspipe 0.3.23
authorMichael Prokop <mika@grml.org>
Wed, 5 Sep 2007 16:23:33 +0000 (18:23 +0200)
committerMichael Prokop <mika@grml.org>
Wed, 5 Sep 2007 16:23:33 +0000 (18:23 +0200)
debian/changelog
etc/zsh/zshenv

index 7ca00e5..3e865f5 100644 (file)
@@ -1,3 +1,11 @@
+grml-etc-core (0.3.23) unstable; urgency=low
+
+  * /etc/zsh/zshenv: switch direction of check for lesspipe vs.
+    lesspipe.sh so we use the extended version by default if 
+    it's available.
+
+ -- Michael Prokop <mika@grml.org>  Wed,  5 Sep 2007 18:22:57 +0200
+
 grml-etc-core (0.3.22) unstable; urgency=low
 
   [Frank Terbeck]
index 85458f9..cbbe4f1 100644 (file)
 
 # less (:=pager) options:
 #  export LESS=C
-  if [ -x /usr/bin/lesspipe ] ; then
-     export LESSOPEN="|lesspipe %s"
-  elif [ -x /usr/bin/lesspipe.sh ] ; then
+  if [ -x /usr/bin/lesspipe.sh ] ; then
      export LESSOPEN="|lesspipe.sh %s"
+  elif [ -x /usr/bin/lesspipe ] ; then
+     export LESSOPEN="|lesspipe %s"
   fi
   export READNULLCMD=${PAGER:-/usr/bin/pager}