Forked from cocoalabs/gist:2fb7dc2199b0d4bf160364b8e557eb66
Created
August 17, 2016 07:32
-
-
Save danielribeiro/7397ec373117a720913779bff7d86972 to your computer and use it in GitHub Desktop.
Color Terminal for bash/zsh etc..
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
man() { | |
env \ | |
LESS_TERMCAP_mb=$(printf "\e[1;31m") \ | |
LESS_TERMCAP_md=$(printf "\e[1;31m") \ | |
LESS_TERMCAP_me=$(printf "\e[0m") \ | |
LESS_TERMCAP_se=$(printf "\e[0m") \ | |
LESS_TERMCAP_so=$(printf "\e[1;44;33m") \ | |
LESS_TERMCAP_ue=$(printf "\e[0m") \ | |
LESS_TERMCAP_us=$(printf "\e[1;32m") \ | |
man "$@" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment