-
-
Save tchajed/678a1ebb7a1ab707532c47cd447f8cff to your computer and use it in GitHub Desktop.
Colored `man` pages on OS X
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fish users | |
# Save this file as ~/.config/fish/functions/man.fish | |
function man | |
env \ | |
LESS_TERMCAP_mb=\e"[1;31m" \ | |
LESS_TERMCAP_md=\e"[1;31m" \ | |
LESS_TERMCAP_me=\e"[0m" \ | |
LESS_TERMCAP_se=\e"[0m" \ | |
LESS_TERMCAP_so=\e"[1;44;33m" \ | |
LESS_TERMCAP_ue=\e"[0m" \ | |
LESS_TERMCAP_us=\e"[1;32m" \ | |
man $argv | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment