Add command-exists shell helper

This commit is contained in:
2020-05-23 19:16:06 +01:00
parent ba559be4bc
commit d4d64f654e
7 changed files with 16 additions and 8 deletions

View File

@@ -27,7 +27,7 @@ alias di="colordiff"
alias devnullsmtp="java -jar $DOTBIN/DevNullSmtp.jar"
# Homebrew
if (( $+commands[brew] )); then
if command-exists brew; then
alias br="brew"
alias ca="brew cask"
alias cask="brew cask"
@@ -36,7 +36,7 @@ if (( $+commands[brew] )); then
fi
# Flutter
if (( $+commands[flutter] )); then
if command-exists flutter; then
alias fl="flutter"
fi