mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 23:08:00 +00:00
Fix lesspipe.sh detection in custom PATH
The detection of lesspipe.sh has to be done after setting PATH as it could be installed in a non-standard bin directory. For example, Homebrew installs lesspipe in /usr/local.
This commit is contained in:
parent
b531191e2c
commit
39795d3e5e
@ -29,20 +29,6 @@ if [[ -z "$LANG" ]]; then
|
|||||||
eval "$(locale)"
|
eval "$(locale)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
|
||||||
# Less
|
|
||||||
#
|
|
||||||
|
|
||||||
# Set the default Less options.
|
|
||||||
# Mouse-wheel scrolling has been disabled by -X (disable screen clearing).
|
|
||||||
# Remove -X and -F (exit if the content fits on one screen) to enable it.
|
|
||||||
export LESS='-F -g -i -M -R -S -w -X -z-4'
|
|
||||||
|
|
||||||
# Set the Less input preprocessor.
|
|
||||||
if (( $+commands[lesspipe.sh] )); then
|
|
||||||
export LESSOPEN='| /usr/bin/env lesspipe.sh %s 2>&-'
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Paths
|
# Paths
|
||||||
#
|
#
|
||||||
@ -88,6 +74,20 @@ for path_file in /etc/paths.d/*(.N); do
|
|||||||
done
|
done
|
||||||
unset path_file
|
unset path_file
|
||||||
|
|
||||||
|
#
|
||||||
|
# Less
|
||||||
|
#
|
||||||
|
|
||||||
|
# Set the default Less options.
|
||||||
|
# Mouse-wheel scrolling has been disabled by -X (disable screen clearing).
|
||||||
|
# Remove -X and -F (exit if the content fits on one screen) to enable it.
|
||||||
|
export LESS='-F -g -i -M -R -S -w -X -z-4'
|
||||||
|
|
||||||
|
# Set the Less input preprocessor.
|
||||||
|
if (( $+commands[lesspipe.sh] )); then
|
||||||
|
export LESSOPEN='| /usr/bin/env lesspipe.sh %s 2>&-'
|
||||||
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# Temporary Files
|
# Temporary Files
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user