diff --git a/zshrc b/zshrc index 2c65013..7d18cd0 100644 --- a/zshrc +++ b/zshrc @@ -14,7 +14,7 @@ fi # ============================================================================== command-exists() { - command -v "$1" &> /dev/null + (( ${+commands[$1]} )) return $? } @@ -118,8 +118,8 @@ source "$DOTZSH/rclone.zsh" source "$DOTZSH/tmux.zsh" # Development -source "$DOTZSH/docker.zsh" source "$DOTZSH/direnv.zsh" +source "$DOTZSH/docker.zsh" source "$DOTZSH/golang.zsh" source "$DOTZSH/google-cloud.zsh" source "$DOTZSH/kubernetes.zsh"