瀏覽代碼

Add colored manual

Blallo 3 年之前
父節點
當前提交
03550aa791
共有 1 個文件被更改,包括 8 次插入0 次删除
  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