Colorfull man pages

Not sure if I want to keep this
This commit is contained in:
Peter J. Holzer 2016-11-21 14:54:57 +01:00
parent 0f9f7e8162
commit ba7586e828
1 changed files with 11 additions and 0 deletions

11
.zshrc
View File

@ -68,6 +68,17 @@ dup(){
cls() { clear; true } cls() { clear; true }
man () {
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 "$@"
}
source ~/.znewterm source ~/.znewterm
# assume pseudo terminals are from a "safe" terminal # assume pseudo terminals are from a "safe" terminal