Zsh: Prefer lesspipe over lesspipe.sh
This commit is contained in:
parent
800d6e4f94
commit
767ad1794a
|
@ -65,10 +65,10 @@ alias cmake_static='cmake -DCMAKE_FIND_LIBRARY_SUFFIXES=".a" -DBUILD_SHARED_LIBS
|
||||||
alias crontab='crontab -i'
|
alias crontab='crontab -i'
|
||||||
|
|
||||||
# Explicitly use lesspipe.
|
# Explicitly use lesspipe.
|
||||||
if command -v lesspipe.sh > /dev/null; then
|
if command -v lesspipe > /dev/null; then
|
||||||
alias lessp='LESSOPEN="|lesspipe.sh %s" less'
|
|
||||||
elif command -v lesspipe > /dev/null; then
|
|
||||||
alias lessp='LESSOPEN="|lesspipe %s" less'
|
alias lessp='LESSOPEN="|lesspipe %s" less'
|
||||||
|
elif command -v lesspipe.sh > /dev/null; then
|
||||||
|
alias lessp='LESSOPEN="|lesspipe.sh %s" less'
|
||||||
fi
|
fi
|
||||||
# Follow mode does not work with highlight.
|
# Follow mode does not work with highlight.
|
||||||
alias lessf='LESSOPEN="" less +F'
|
alias lessf='LESSOPEN="" less +F'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user