diff options
-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 |