diff --git a/runcoms/zprofile b/runcoms/zprofile index b12367a..5b8b638 100644 --- a/runcoms/zprofile +++ b/runcoms/zprofile @@ -66,6 +66,6 @@ fi # Set the Less input preprocessor. # 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>&-" fi