From 8628448d5de9fec3388090d6b3d64d4b78e20572 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Fri, 7 Jan 2022 15:55:13 +0000 Subject: [PATCH] Also alias batcat --- utilities/utilities.plugin.zsh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/utilities/utilities.plugin.zsh b/utilities/utilities.plugin.zsh index 483cab0..9b7f254 100644 --- a/utilities/utilities.plugin.zsh +++ b/utilities/utilities.plugin.zsh @@ -66,8 +66,11 @@ if which bat &> /dev/null; then # Both --theme and --color can be specified multiple times and will override # these defaults. bat() { - command bat --theme='TwoDark' --color always \ - --paging always --pager 'less -R' "$@" + command bat --theme='TwoDark' --color always --paging auto "$@" + } +elif which batcat &> /dev/null; then + bat() { + command batcat --theme='TwoDark' --color always --paging auto "$@" } fi