From 1d3f422c1db5d3e95d942dff14dd059cf746dcd5 Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Sun, 21 Feb 2021 11:14:25 -0600 Subject: [PATCH] Adding manpager options in shell configs. --- .bashrc | 70 +++++++++++++++++++++++++---------- .config/fish/config.fish | 54 ++++++++++++++++++++++----- .config/nitrogen/bg-saved.cfg | 6 +-- .config/nitrogen/nitrogen.cfg | 8 ++-- .zshrc | 66 ++++++++++++++++++++++++--------- 5 files changed, 150 insertions(+), 54 deletions(-) diff --git a/.bashrc b/.bashrc index 8e08434..7915189 100644 --- a/.bashrc +++ b/.bashrc @@ -7,11 +7,23 @@ # My bash config. Not much to see here; just some pretty standard stuff. ### EXPORT -export TERM="xterm-256color" # getting proper colors -export HISTCONTROL=ignoredups:erasedups # no duplicate entries -export ALTERNATE_EDITOR="" # setting for emacsclient -export EDITOR="emacsclient -t -a ''" # $EDITOR use Emacs in terminal -export VISUAL="emacsclient -c -a emacs" # $VISUAL use Emacs in GUI mode +export TERM="xterm-256color" # getting proper colors +export HISTCONTROL=ignoredups:erasedups # no duplicate entries +export ALTERNATE_EDITOR="" # setting for emacsclient +export EDITOR="emacsclient -t -a ''" # $EDITOR use Emacs in terminal +export VISUAL="emacsclient -c -a emacs" # $VISUAL use Emacs in GUI mode + +### SET MANPAGER +### Uncomment only one of these! + +### "bat" as manpager +export MANPAGER="sh -c 'col -bx | bat -l man -p'" + +### "vim" as manpager +# export MANPAGER='/bin/bash -c "vim -MRn -c \"set buftype=nofile showtabline=0 ft=man ts=8 nomod nolist norelativenumber nonu noma\" -c \"normal L\" -c \"nmap q :qa\"\"