From 64c6dfe98f2a68aeac98dd456a19904efe3c47f9 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 16 Mar 2021 21:17:37 +1100 Subject: [PATCH] feat: add alias to run bat instead of cat when available, like lsd --- config/zsh/interactive/aliases | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/zsh/interactive/aliases b/config/zsh/interactive/aliases index d59dede..0c16851 100644 --- a/config/zsh/interactive/aliases +++ b/config/zsh/interactive/aliases @@ -1,4 +1,8 @@ #! zsh +if (( $+commands[bat] )); then + alias cat=bat +fi + if (( $+commands[lsd] )); then alias ls=lsd else