Parcourir la source

Add colored manual

Blallo il y a 3 ans
Parent
commit
03550aa791
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 8 0
      .zshrc

+ 8 - 0
.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