top of page
christiandreschler9

The $MANPAGER shell variable.

Updated: Nov 26



The MANPAGER shell variable is used to specify an alternative pager program for displaying manual pages (man pages) in Unix-like systems. When set, it overrides the default pager program, typically less or more, and allows you to use a different program to view man pages.


What’s your $MANPAGER? I’m using neovim.


If you’d like to try that add this line to your ~/.bashrc or ~/.zshrc

export MANPAGER='nvim +Man!' 

It can be done with the fish shell too but with a different syntax:

set -U MANPAGER 'nvim +Man!' 

⚠️ You must install neovim on your system first.


2 views0 comments

Recent Posts

See All

Comments


bottom of page