mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
allow customization of colors for colored-man
This commit is contained in:
parent
ab18795f3c
commit
8941cb67d9
1 changed files with 38 additions and 20 deletions
|
|
@ -16,15 +16,33 @@ EOF
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
zstyle :omz:plugins:colored-man mb $(printf "\e[1;31m")
|
||||||
|
zstyle :omz:plugins:colored-man md $(printf "\e[1;31m")
|
||||||
|
zstyle :omz:plugins:colored-man me $(printf "\e[0m")
|
||||||
|
zstyle :omz:plugins:colored-man se $(printf "\e[0m")
|
||||||
|
zstyle :omz:plugins:colored-man so $(printf "\e[1;44;33m")
|
||||||
|
zstyle :omz:plugins:colored-man ue $(printf "\e[0m")
|
||||||
|
zstyle :omz:plugins:colored-man us $(printf "\e[1;32m")
|
||||||
|
|
||||||
man() {
|
man() {
|
||||||
|
local _mb _md _me _se _so _ue _us
|
||||||
|
|
||||||
|
zstyle -s :omz:plugins:colored-man mb _mb
|
||||||
|
zstyle -s :omz:plugins:colored-man md _md
|
||||||
|
zstyle -s :omz:plugins:colored-man me _me
|
||||||
|
zstyle -s :omz:plugins:colored-man se _se
|
||||||
|
zstyle -s :omz:plugins:colored-man so _so
|
||||||
|
zstyle -s :omz:plugins:colored-man ue _ue
|
||||||
|
zstyle -s :omz:plugins:colored-man us _us
|
||||||
|
|
||||||
env \
|
env \
|
||||||
LESS_TERMCAP_mb=$(printf "\e[1;31m") \
|
LESS_TERMCAP_mb=$_mb\
|
||||||
LESS_TERMCAP_md=$(printf "\e[1;31m") \
|
LESS_TERMCAP_md=$_md\
|
||||||
LESS_TERMCAP_me=$(printf "\e[0m") \
|
LESS_TERMCAP_me=$_me\
|
||||||
LESS_TERMCAP_se=$(printf "\e[0m") \
|
LESS_TERMCAP_se=$_se\
|
||||||
LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
|
LESS_TERMCAP_so=$_so\
|
||||||
LESS_TERMCAP_ue=$(printf "\e[0m") \
|
LESS_TERMCAP_ue=$_ue\
|
||||||
LESS_TERMCAP_us=$(printf "\e[1;32m") \
|
LESS_TERMCAP_us=$_us\
|
||||||
PAGER=/usr/bin/less \
|
PAGER=/usr/bin/less \
|
||||||
_NROFF_U=1 \
|
_NROFF_U=1 \
|
||||||
PATH=${HOME}/bin:${PATH} \
|
PATH=${HOME}/bin:${PATH} \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue