[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
1 changed files with 1 additions and 1 deletions

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