Browse Source

zprofile: adjust condition for `LESSOPEN` export

Split tests for condition for `export LESSOPEN` separate per convention
master
Indrajit Raychaudhuri 3 years ago committed by Indrajit Raychaudhuri
parent
commit
4437a48414
  1. 2
      runcoms/zprofile

2
runcoms/zprofile

@ -66,6 +66,6 @@ fi
# Set the Less input preprocessor. # Set the Less input preprocessor.
# Try both `lesspipe` and `lesspipe.sh` as either might exist on a system. # Try both `lesspipe` and `lesspipe.sh` as either might exist on a system.
if [[ -z "$LESSOPEN" && (( $#commands[(i)lesspipe(|.sh)] )) ]]; then if [[ -z "$LESSOPEN" ]] && (( $#commands[(i)lesspipe(|.sh)] )); then
export LESSOPEN="| /usr/bin/env $commands[(i)lesspipe(|.sh)] %s 2>&-" export LESSOPEN="| /usr/bin/env $commands[(i)lesspipe(|.sh)] %s 2>&-"
fi fi

Loading…
Cancel
Save