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