From c2755770d36b807473f7756cde7e2bcf5e2710f1 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sat, 11 Feb 2017 14:18:48 +0100 Subject: [PATCH] Colorized manpages --- shells/zsh/zshrc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/shells/zsh/zshrc b/shells/zsh/zshrc index 36385f1..0f93af4 100644 --- a/shells/zsh/zshrc +++ b/shells/zsh/zshrc @@ -1,4 +1,4 @@ -source ~/.antigen.zsh +source ~/antigen/antigen.zsh antigen bundle robbyrussell/oh-my-zsh lib/ antigen use oh-my-zsh @@ -72,4 +72,14 @@ alias prm=". $HOME/tools/prm/prm.sh" # multiple tabs in termite source /etc/profile.d/vte.sh +# copied from http://www.tuxarena.com/2012/04/tutorial-colored-man-pages-how-it-works/ +# maybe improve later +export LESS_TERMCAP_mb=$(printf '\e[01;31m') # enter blinking mode - red +export LESS_TERMCAP_md=$(printf '\e[01;35m') # enter double-bright mode - bold, magenta +export LESS_TERMCAP_me=$(printf '\e[0m') # turn off all appearance modes (mb, md, so, us) +export LESS_TERMCAP_se=$(printf '\e[0m') # leave standout mode +export LESS_TERMCAP_so=$(printf '\e[01;33m') # enter standout mode - yellow +export LESS_TERMCAP_ue=$(printf '\e[0m') # leave underline mode +export LESS_TERMCAP_us=$(printf '\e[04;36m') # enter underline mode - cyan + # vim: set filetype=zsh ts=4 sw=4 tw=0 et :