diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2013-02-21 15:05:31 +0100 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2013-02-21 15:05:31 +0100 |
| commit | 4ef43fb9b443d8a54ca5ce80fee338c1b9e33e6b (patch) | |
| tree | 536c9d67e74c5efa935e5dd7b4fe9968b99e2fc6 | |
| parent | c84ab19dbde42bc9811176751eb92d02c57cd940 (diff) | |
| download | dotfiles-4ef43fb9b443d8a54ca5ce80fee338c1b9e33e6b.tar.gz | |
[Zsh] colors for man
| -rw-r--r-- | .zshrc | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -16,7 +16,6 @@ CASE_SENSITIVE="true" # Comment this out to disable weekly auto-update checks # DISABLE_AUTO_UPDATE="true" - # Uncomment following line if you want to disable colors in ls # DISABLE_LS_COLORS="true" @@ -36,3 +35,15 @@ source $ZSH/oh-my-zsh.sh # Customize to your needs... alias pacman=pacman-color unsetopt correct_all +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 "$@" +} + |
