From ee6362c5b8660967b715651be1b5aec5164a5db2 Mon Sep 17 00:00:00 2001 From: velvettear Date: Thu, 15 May 2025 11:06:47 +0200 Subject: [PATCH] fix 'PAGER' setup --- zsh/zprofile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zsh/zprofile b/zsh/zprofile index ab0cca2..e948443 100755 --- a/zsh/zprofile +++ b/zsh/zprofile @@ -23,7 +23,9 @@ export TEMP="/tmp" export TMPDIR="/tmp" export EDITOR="nvim" export VISUAL="nvim" -if [[ "$(which bat 2> /dev/null)" ]]; then +which bat &> /dev/null +if [[ "$?" == "0" ]]; then + echo "BAT FOUND!" export PAGER="bat" else export PAGER="less"