fix(zshrc): fix typo in command name from batcat to batcat

feat(zshrc): add support for batcat command as alternative to cat command
This commit is contained in:
David Ibia
2025-01-19 18:09:59 +01:00
parent f8c95b7b7a
commit 47e7e50bee

2
.zshrc
View File

@@ -142,7 +142,7 @@ if [ -x "$(command -v bat)" ]; then
alias cat="bat --theme=\$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo ansi || echo base16)"
else
if [ -x "$(command -v batcat)"]; then
if [ -x "$(command -v batcat)" ]; then
alias cat="batcat"
else
echo "bat is not installed. Please install it to use the custom cat command."