dotfiles/zsh/.oh-my-zsh/custom/man.zsh
George Rawlinson e88c975220 docs(zsh): include omz plugins
plugins:
* archlinux
* coloured man pages
* web search
2017-05-16 07:09:57 +12:00

11 lines
330 B
Bash

# colour output in man
# source: https://wiki.archlinux.org/index.php/Color_output_in_console#man
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 "$@"
}