Add bat as PAGER if available

This commit is contained in:
gardouille 2024-09-02 14:59:32 +02:00
parent 1d6313a4aa
commit 9a2abf9670
Signed by: gardouille
GPG Key ID: E759BAA22501AF32

6
zshenv
View File

@ -42,8 +42,12 @@ fi
## Pager (man,…) {{{
if [ $(command -v vimmanpager) ]; then
export PAGER=vimmanpager
else
elif [ $(command -v bat) ]; then
export PAGER=bat
elif [ $(command -v less) ]; then
export PAGER=less
else
echo "Error, no decent PAGER available"
fi
alias zless=$PAGER
## }}}