improve man color
This commit is contained in:
parent
e3125d4178
commit
3e934335e8
1 changed files with 7 additions and 7 deletions
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…
Reference in a new issue