From 00de841771ef9a632c72477299166f4ddaaab2f3 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Thu, 3 Feb 2022 17:03:19 +0100 Subject: [PATCH] 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 -- ` as 'hack' to view the page in `less` for example if a real pager is desired because of the loading time (e.g. `zshall`). --- .config/zsh/.zprofile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile index 1d3cfcb..3613bc5 100644 --- a/.config/zsh/.zprofile +++ b/.config/zsh/.zprofile @@ -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'