From 2e49d4bd63a00f7f28dc574cce2ad52371678692 Mon Sep 17 00:00:00 2001 From: zachir Date: Sun, 11 Jun 2023 15:23:33 -0500 Subject: Only add portmaster-start env if command exists --- zsh/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)" -- cgit v1.2.3