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