diff options
author | Alan Pearce | 2023-06-16 17:03:59 +0200 |
---|---|---|
committer | Alan Pearce | 2023-06-16 17:03:59 +0200 |
commit | be6236a872079b144d4abdeace1d34b528447136 (patch) | |
tree | e3bf9def5a4aca8dcda8fd07055e18bbe5962019 /user/zsh/zshrc | |
parent | 1ea3974cd0ac82421d1cbcac4075ab46760ee7cd (diff) | |
download | nixfiles-be6236a872079b144d4abdeace1d34b528447136.tar.lz nixfiles-be6236a872079b144d4abdeace1d34b528447136.tar.zst nixfiles-be6236a872079b144d4abdeace1d34b528447136.zip |
Enable `bat`
Diffstat (limited to 'user/zsh/zshrc')
-rw-r--r-- | user/zsh/zshrc | 5 |
1 files changed, 5 insertions, 0 deletions
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 +} |