zsh: remove fallback when starship is not present

This commit is contained in:
saibotk 2023-06-15 21:27:02 +02:00
parent 281c3d8907
commit dbdd70b810
Signed by: saibotk
GPG key ID: 67585F0065E261D5

View file

@ -5,12 +5,6 @@ export DOTFILES=$HOME/.dotfiles
zstyle ':znap:*' repos-dir ~/.znap zstyle ':znap:*' repos-dir ~/.znap
source ~/.znap/znap/znap.zsh source ~/.znap/znap/znap.zsh
# Helper Functions
# Returns whether the given command is executable or aliased.
_has() {
return $( whence $1 >/dev/null )
}
# autocomplete settings # autocomplete settings
zstyle ':autocomplete:tab:*' widget-style menu-select zstyle ':autocomplete:tab:*' widget-style menu-select
zstyle ':autocomplete:*' fzf-completion yes zstyle ':autocomplete:*' fzf-completion yes
@ -47,10 +41,4 @@ then
fi fi
# ZSH prompt # ZSH prompt
if _has starship;
then
znap eval starship 'starship init zsh --print-full-init' znap eval starship 'starship init zsh --print-full-init'
else
echo "You should try installing the starship prompt 🚀"
znap prompt ohmyzsh/ohmyzsh robbyrussell
fi