From 2638a852b33cf15d9e17559b298c816a803645aa Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Sun, 31 Jul 2022 16:40:45 +0000 Subject: [PATCH] make prompt/extensions tool installed dependent --- lib/prompt.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/prompt.sh b/lib/prompt.sh index 8267a39..99ab82a 100755 --- a/lib/prompt.sh +++ b/lib/prompt.sh @@ -1,8 +1,12 @@ autoload -Uz compinit compinit -eval "$(sheldon -q --config-file ~/.config/sheldon/plugins.toml source)" +if is-executable sheldon; then + eval "$(sheldon -q --config-file ~/.config/sheldon/plugins.toml source)" +fi + +# TODO: make decent fall back shell + +is-executable starship && eval "$(starship init zsh)" is-executable zoxide && eval eval "$(zoxide init zsh --cmd cd)" - -eval "$(starship init zsh)"