diff options
author | zachir <zachir@librem.one> | 2023-06-11 15:23:33 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2023-06-11 15:23:33 -0500 |
commit | 2e49d4bd63a00f7f28dc574cce2ad52371678692 (patch) | |
tree | 96d1412d8d96ddaf3b244a38a2ebf17084675806 | |
parent | 9377c494be47a57009e52752fa1a9604b17ef2f5 (diff) |
Only add portmaster-start env if command exists
-rw-r--r-- | zsh/.zshrc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)" |