1
0
Fork 0
mirror of synced 2024-12-27 00:13:20 -05:00

[environment] Use zsh style tests for empty vars

Closes #180
This commit is contained in:
ℳichiel ℛoos 2017-05-10 21:30:47 +02:00 committed by Eric Nielsen
parent c58f9015ec
commit fcf060482b

View file

@ -39,7 +39,7 @@ unsetopt HUP
unsetopt CHECK_JOBS
# Set less or more as the default pager.
if [[ -z ${PAGER} ]]; then
if (( ! ${+PAGER} )); then
if (( ${+commands[less]} )); then
export PAGER=less
else