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"