summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2013-02-21 15:05:31 +0100
committerThibaut Horel <thibaut.horel@gmail.com>2013-02-21 15:05:31 +0100
commit4ef43fb9b443d8a54ca5ce80fee338c1b9e33e6b (patch)
tree536c9d67e74c5efa935e5dd7b4fe9968b99e2fc6
parentc84ab19dbde42bc9811176751eb92d02c57cd940 (diff)
downloaddotfiles-4ef43fb9b443d8a54ca5ce80fee338c1b9e33e6b.tar.gz
[Zsh] colors for man
-rw-r--r--.zshrc13
1 files changed, 12 insertions, 1 deletions
diff --git a/.zshrc b/.zshrc
index 07457dc..e74279a 100644
--- a/.zshrc
+++ b/.zshrc
@@ -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 "$@"
+}
+