From 3e934335e8991b1fcfe54dcf4184ee33530871de Mon Sep 17 00:00:00 2001 From: lhark Date: Thu, 22 Oct 2015 11:59:01 +0200 Subject: [PATCH] improve man color --- zshrc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/zshrc b/zshrc index 6bf256f..8a2822b 100644 --- a/zshrc +++ b/zshrc @@ -427,13 +427,13 @@ setopt correct # Syntax coloration for man 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") \ + LESS_TERMCAP_mb=$(printf "$fg_bold[red]") \ + LESS_TERMCAP_md=$(printf "$fg_bold[red]") \ + LESS_TERMCAP_me=$(printf "$reset_color") \ + LESS_TERMCAP_se=$(printf "$reset_color") \ + LESS_TERMCAP_so=$(printf "$bg[black]$fg[yellow]") \ + LESS_TERMCAP_ue=$(printf "$reset_color") \ + LESS_TERMCAP_us=$(printf "$fg_bold[blue]") \ man "$@" } # source ~/.zs/zsh-syntax-highlighting.zsh