From 4ef43fb9b443d8a54ca5ce80fee338c1b9e33e6b Mon Sep 17 00:00:00 2001 From: Thibaut Horel Date: Thu, 21 Feb 2013 15:05:31 +0100 Subject: [Zsh] colors for man --- .zshrc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 "$@" +} + -- cgit v1.2.3-70-g09d2