improve man color

This commit is contained in:
lhark 2015-10-22 11:59:01 +02:00
parent e3125d4178
commit 3e934335e8

14
zshrc
View file

@ -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