env: use nvim as manpager if it's available
This commit is contained in:
parent
951cebf04a
commit
40dfcd9272
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue