fix(zshrc): fix syntax error in conditional statement for batcat installation check

This commit is contained in:
David Ibia
2025-01-19 18:09:47 +01:00
parent 8b5d620b3d
commit f8c95b7b7a

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