mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 04:38:01 +00:00
zprofile: adjust condition for LESSOPEN
export
Split tests for condition for `export LESSOPEN` separate per convention
This commit is contained in:
parent
15150085e6
commit
98d69fc91f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user