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