Update man alias
This commit is contained in:
parent
8dbf08de1e
commit
5b32bfdcfc
1 changed files with 3 additions and 4 deletions
5
.zshrc
5
.zshrc
|
@ -282,11 +282,10 @@ fi
|
||||||
|
|
||||||
## Colored manual
|
## Colored manual
|
||||||
|
|
||||||
function _man() {
|
function cman() {
|
||||||
man $@ | bat -p --language="man"
|
man $@ | bat -p --language="man"
|
||||||
}
|
}
|
||||||
|
compdef cman='man'
|
||||||
alias man="_man"
|
|
||||||
|
|
||||||
## Local only
|
## Local only
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue