mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
Colorize man pages through LESS_TERMCAP
This commit is contained in:
10
dotfiles/desktop/.bashrc.d/12-manpages.sh
Normal file
10
dotfiles/desktop/.bashrc.d/12-manpages.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
export LESS='-R'
|
||||
|
||||
# Keep man pages readable with a subdued Yaru-like palette.
|
||||
export LESS_TERMCAP_mb=$'\e[0;38;5;110m'
|
||||
export LESS_TERMCAP_md=$'\e[1;38;5;111m'
|
||||
export LESS_TERMCAP_me=$'\e[0m'
|
||||
export LESS_TERMCAP_so=$'\e[38;5;252;48;5;238m'
|
||||
export LESS_TERMCAP_se=$'\e[0m'
|
||||
export LESS_TERMCAP_us=$'\e[0;38;5;209m'
|
||||
export LESS_TERMCAP_ue=$'\e[0m'
|
||||
Reference in New Issue
Block a user