env: use nvim as manpager if it's available

This commit is contained in:
PowerUser64 2025-04-04 21:25:26 -07:00
parent 951cebf04a
commit 40dfcd9272

View file

@ -91,7 +91,13 @@ export LSCOLORS="Gxfxcxdxbxegedabagacad"
# `less` colors
# shellcheck disable=SC2016
export LESS='-R --use-color -Dd+g$Du+b'
export MANPAGER="less -R --use-color -Dd+g -Du+b"
# Neovim for man pages
if command -v nvim > /dev/null; then
export MANPAGER='nvim +Man!'
else
export MANPAGER="less -R --use-color -Dd+g -Du+b"
fi
# Theme for zsh and nvim (soon™)
COLOR_SCHEME=tokyonight