From be6236a872079b144d4abdeace1d34b528447136 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 16 Jun 2023 17:03:59 +0200 Subject: Enable `bat` --- user/zsh/zshrc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'user/zsh') diff --git a/user/zsh/zshrc b/user/zsh/zshrc index 2c87e5a7..0331a083 100644 --- a/user/zsh/zshrc +++ b/user/zsh/zshrc @@ -169,3 +169,8 @@ tere() { local result=$(command tere "$@") [ -n "$result" ] && cd -- "$result" } + +alias bathelp='bat --plain --language=help' +help() { + "$@" --help 2>&1 | bathelp +} -- cgit 1.4.1