diff --git a/zsh/zprofile b/zsh/zprofile index 44fb4b8..f0bc81b 100755 --- a/zsh/zprofile +++ b/zsh/zprofile @@ -23,7 +23,11 @@ export TEMP="/tmp" export TMPDIR="/tmp" export EDITOR="nvim" export VISUAL="nvim" -export PAGER="bat" +if [[ "$(command bat 2> /dev/null)" ]]; then + export PAGER="bat" +else + export PAGER="less" +fi # ----- history ----- # export HISTFILE="$HOME/.zhistory"