]> arthur.barton.de Git - ax-zsh.git/commitdiff
less: Add support for lesspipe.sh
authorAlexander Barton <alex@barton.de>
Thu, 25 Apr 2019 13:31:34 +0000 (15:31 +0200)
committerAlexander Barton <alex@barton.de>
Thu, 25 Apr 2019 13:31:34 +0000 (15:31 +0200)
default_plugins/less/less.zprofile

index f651611379adcc3ed11d9a197bd13a3c3848dec4..faa26c0a45ba4219700889eeacc9ab1967043b03 100644 (file)
@@ -15,4 +15,8 @@ export LESS_TERMCAP_so=$'\E[01;44;33m'
 export LESS_TERMCAP_ue=$'\E[0m'
 export LESS_TERMCAP_us=$'\E[01;32m'
 
-(( $+commands[lesspipe] )) && eval $(lesspipe)
+if (( $+commands[lesspipe] )); then
+       eval "$(lesspipe)"
+elif (( $+commands[lesspipe.sh] )); then
+       eval "$(lesspipe.sh)"
+fi