diff options
author | zachir <zachir@librem.one> | 2023-06-11 15:23:33 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2023-06-12 00:13:08 -0500 |
commit | c43084fe9903160c49a3140ba40bee3e53f3c168 (patch) | |
tree | 52c65dc569e34a3ec5a0d48e665fb215c22046af | |
parent | 7d313bf6525d0dc8540de891aa0836b362e4a52c (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)" |