From 03550aa791c7147bbf672e7b10d90a76134fb4fb Mon Sep 17 00:00:00 2001 From: Blallo Date: Thu, 18 Mar 2021 11:17:46 +0100 Subject: [PATCH] Add colored manual --- .zshrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.zshrc b/.zshrc index d2df3f9..4b71e76 100644 --- a/.zshrc +++ b/.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