From 908ea4236f03cf255f5c1e167362d81ce06530ff Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 30 Aug 2021 22:55:24 +0100 Subject: [PATCH] chore: minor tweaks to zshrc --- zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"