summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-06-11 15:23:33 -0500
committerzachir <zachir@librem.one>2023-06-12 00:13:08 -0500
commitc43084fe9903160c49a3140ba40bee3e53f3c168 (patch)
tree52c65dc569e34a3ec5a0d48e665fb215c22046af
parent7d313bf6525d0dc8540de891aa0836b362e4a52c (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)"