zsh:zprofile: Do not set $MANPAGER to nvim

Do not set `MANPAGER` to `nvim` as `nvim-man` is used already and in the
case that it does not open `nvim` I want to use `less` as **pager**.
This makes it possible to use `man -- <page>` as 'hack' to view the page
in `less` for example if a real pager is desired because of the loading
time (e.g. `zshall`).
This commit is contained in:
2022-02-03 17:03:19 +01:00
parent 6d64a0e609
commit 00de841771

View File

@@ -61,10 +61,8 @@ elif (( $+commands[nano] )); then
export EDITOR=nano export EDITOR=nano
fi fi
# Pager # Less
if (( $+commands[nvim] )); then if (( $+commands[less] )); then
export MANPAGER="nvim -c 'set ft=man' -"
else
# https://www.tecmint.com/view-colored-man-pages-in-linux/ # https://www.tecmint.com/view-colored-man-pages-in-linux/
export LESS_TERMCAP_mb=$'\e[1;32m' export LESS_TERMCAP_mb=$'\e[1;32m'
export LESS_TERMCAP_md=$'\e[1;32m' export LESS_TERMCAP_md=$'\e[1;32m'