From fcf060482bbe3f43d97e755530baf26983e09c80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=84=B3ichiel=20=E2=84=9Boos?= Date: Wed, 10 May 2017 21:30:47 +0200 Subject: [PATCH] [environment] Use zsh style tests for empty vars Closes #180 --- modules/environment/init.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/environment/init.zsh b/modules/environment/init.zsh index 36810ee..52aab18 100644 --- a/modules/environment/init.zsh +++ b/modules/environment/init.zsh @@ -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