Browse Source

improve man color

merge-requests/1/merge
lhark 10 years ago
parent
commit
3e934335e8
  1. 14
      zshrc

14
zshrc

@ -427,13 +427,13 @@ setopt correct
# Syntax coloration for man # Syntax coloration for man
man() { man() {
env \ env \
LESS_TERMCAP_mb=$(printf "\e[1;31m") \ LESS_TERMCAP_mb=$(printf "$fg_bold[red]") \
LESS_TERMCAP_md=$(printf "\e[1;31m") \ LESS_TERMCAP_md=$(printf "$fg_bold[red]") \
LESS_TERMCAP_me=$(printf "\e[0m") \ LESS_TERMCAP_me=$(printf "$reset_color") \
LESS_TERMCAP_se=$(printf "\e[0m") \ LESS_TERMCAP_se=$(printf "$reset_color") \
LESS_TERMCAP_so=$(printf "\e[1;44;33m") \ LESS_TERMCAP_so=$(printf "$bg[black]$fg[yellow]") \
LESS_TERMCAP_ue=$(printf "\e[0m") \ LESS_TERMCAP_ue=$(printf "$reset_color") \
LESS_TERMCAP_us=$(printf "\e[1;32m") \ LESS_TERMCAP_us=$(printf "$fg_bold[blue]") \
man "$@" man "$@"
} }
# source ~/.zs/zsh-syntax-highlighting.zsh # source ~/.zs/zsh-syntax-highlighting.zsh

Loading…
Cancel
Save