diff options
author | mail_redacted_for_web | 2024-08-26 12:02:11 +0200 |
---|---|---|
committer | mail_redacted_for_web | 2024-08-26 12:02:11 +0200 |
commit | 1cb21888d96464cfd068c9c782df276ee0682515 (patch) | |
tree | ad2d794534607be5d2e42d458be2fb15d4faa485 | |
parent | e9d52745f65f1905623e2793dc2b37f9011b2a1d (diff) | |
download | dotfiles-1cb21888d96464cfd068c9c782df276ee0682515.tar.bz2 |
I'M BATMAN
-rw-r--r-- | .bash/aliases.bash | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.bash/aliases.bash b/.bash/aliases.bash index 405f370..bcdfae2 100644 --- a/.bash/aliases.bash +++ b/.bash/aliases.bash @@ -187,3 +187,12 @@ if command -v podman >/dev/null;then alias pnd="podman network disconnect" alias ppd="podman pod stop" fi +for cmmd in batcat bat; do + if command -v "$cmmd" > /dev/null; then + # shellcheck disable=SC2139 + alias cat="${cmmd} --tabs 4 --wrap never --paging never --style 'plain,rule'" + export MANPAGER="sh -c 'col -bx | ${cmmd} -l man -p'" + export MANROFFOPT="-c" + break + fi +done |