Set colors for man to match the background
This commit is contained in:
parent
d52f548201
commit
5854bc87fe
28
.zshrc
28
.zshrc
|
@ -67,14 +67,26 @@ dup(){
|
||||||
cls() { clear; true }
|
cls() { clear; true }
|
||||||
|
|
||||||
man () {
|
man () {
|
||||||
LESS_TERMCAP_mb=$'\e'"[1;31m" \
|
if [[ "$BG" = "dark" ]]
|
||||||
LESS_TERMCAP_md=$'\e'"[1;38;5;88m" \
|
then
|
||||||
LESS_TERMCAP_me=$'\e'"[0m" \
|
LESS_TERMCAP_mb=$'\e'"[1;31m" \
|
||||||
LESS_TERMCAP_se=$'\e'"[0m" \
|
LESS_TERMCAP_md=$'\e'"[1;32m" \
|
||||||
LESS_TERMCAP_so=$'\e'"[1;44;33m" \
|
LESS_TERMCAP_me=$'\e'"[0m" \
|
||||||
LESS_TERMCAP_ue=$'\e'"[0m" \
|
LESS_TERMCAP_se=$'\e'"[0m" \
|
||||||
LESS_TERMCAP_us=$'\e'"[1;38;5;22m" \
|
LESS_TERMCAP_so=$'\e'"[1;44;33m" \
|
||||||
command man "$@"
|
LESS_TERMCAP_ue=$'\e'"[0m" \
|
||||||
|
LESS_TERMCAP_us=$'\e'"[36m" \
|
||||||
|
command man "$@"
|
||||||
|
else
|
||||||
|
LESS_TERMCAP_mb=$'\e'"[1;31m" \
|
||||||
|
LESS_TERMCAP_md=$'\e'"[1;38;5;88m" \
|
||||||
|
LESS_TERMCAP_me=$'\e'"[0m" \
|
||||||
|
LESS_TERMCAP_se=$'\e'"[0m" \
|
||||||
|
LESS_TERMCAP_so=$'\e'"[1;44;33m" \
|
||||||
|
LESS_TERMCAP_ue=$'\e'"[0m" \
|
||||||
|
LESS_TERMCAP_us=$'\e'"[1;38;5;22m" \
|
||||||
|
command man "$@"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
venv() {
|
venv() {
|
||||||
|
|
Loading…
Reference in New Issue