Skip to content

Instantly share code, notes, and snippets.

@tchajed
Forked from supermarin/.env
Last active August 19, 2016 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tchajed/678a1ebb7a1ab707532c47cd447f8cff to your computer and use it in GitHub Desktop.
Save tchajed/678a1ebb7a1ab707532c47cd447f8cff to your computer and use it in GitHub Desktop.
Colored `man` pages on OS X
# 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