master
Daniel Napora 2021-10-03 01:16:39 +02:00
parent 3642e37184
commit 89347e12e2
1 changed files with 13 additions and 0 deletions

View File

@ -143,6 +143,19 @@ ex ()
echo "'$1' is not a valid file" echo "'$1' is not a valid file"
fi 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 # Theme.sh
export THEME_HISTFILE=~/.theme_history export THEME_HISTFILE=~/.theme_history
[ -e "$THEME_HISTFILE" ] && theme.sh "$(theme.sh -l|tail -n1)" [ -e "$THEME_HISTFILE" ] && theme.sh "$(theme.sh -l|tail -n1)"