diff --git a/.zshrc b/.zshrc index 94696a6..70fd666 100644 --- a/.zshrc +++ b/.zshrc @@ -68,6 +68,17 @@ dup(){ 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 # assume pseudo terminals are from a "safe" terminal