From 89347e12e2453600e2c7be186f8543094294a72a Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Sun, 3 Oct 2021 01:16:39 +0200 Subject: [PATCH] bashrc --- common/.bashrc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/common/.bashrc b/common/.bashrc index afb3264..adaa914 100644 --- a/common/.bashrc +++ b/common/.bashrc @@ -143,6 +143,19 @@ ex () echo "'$1' is not a valid file" fi } + +# Colorized man using less +man() { + LESS_TERMCAP_md=$'\e[01;31m' \ + LESS_TERMCAP_me=$'\e[0m' \ + LESS_TERMCAP_se=$'\e[0m' \ + LESS_TERMCAP_so=$'\e[01;44;33m' \ + LESS_TERMCAP_ue=$'\e[0m' \ + LESS_TERMCAP_us=$'\e[01;32m' \ + command man "$@" +} + + # Theme.sh export THEME_HISTFILE=~/.theme_history [ -e "$THEME_HISTFILE" ] && theme.sh "$(theme.sh -l|tail -n1)"