From ba7586e8285261ac39e0a701b3ae7378db5d688a Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Mon, 21 Nov 2016 14:54:57 +0100 Subject: [PATCH] Colorfull man pages Not sure if I want to keep this --- .zshrc | 11 +++++++++++ 1 file changed, 11 insertions(+) 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