summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-06-11 15:23:33 -0500
committerzachir <zachir@librem.one>2023-06-11 15:23:33 -0500
commit2e49d4bd63a00f7f28dc574cce2ad52371678692 (patch)
tree96d1412d8d96ddaf3b244a38a2ebf17084675806
parent9377c494be47a57009e52752fa1a9604b17ef2f5 (diff)
Only add portmaster-start env if command exists
-rw-r--r--zsh/.zshrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index d397cf3..d11c091 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -96,4 +96,4 @@ bindkey -- '^[[B' down-line-or-beg
[[ -n "${key[Delete]}" ]] && bindkey -- "${key[Delete]}" delete-char
#eval "$(starship init zsh)"
-eval "$(portmaster-start --data=/opt/safing/portmaster completion zsh)"
+type portmaster-start 2>&1 >/dev/null && eval "$(portmaster-start --data=/opt/safing/portmaster completion zsh)"