Add colored manual
This commit is contained in:
parent
2e370ce13b
commit
03550aa791
1 changed files with 8 additions and 0 deletions
8
.zshrc
8
.zshrc
|
@ -270,6 +270,14 @@ urldecode() {
|
|||
# certo
|
||||
eval "$(_CERTO_COMPLETE=source_zsh certo)"
|
||||
|
||||
## Colored manual
|
||||
|
||||
function _man() {
|
||||
man $@ | bat -p --language="man"
|
||||
}
|
||||
|
||||
alias man="_man"
|
||||
|
||||
## Local only
|
||||
|
||||
if [ -f ${HOME}/.zshrc.local ]; then
|
||||
|
|
Loading…
Reference in a new issue