From dbdd70b810ad8a263ec732e055b537e053ff3012 Mon Sep 17 00:00:00 2001 From: saibotk Date: Thu, 15 Jun 2023 21:27:02 +0200 Subject: [PATCH] zsh: remove fallback when starship is not present --- zsh/.zshrc | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index a601483..bee3ab9 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -5,12 +5,6 @@ export DOTFILES=$HOME/.dotfiles zstyle ':znap:*' repos-dir ~/.znap source ~/.znap/znap/znap.zsh -# Helper Functions -# Returns whether the given command is executable or aliased. -_has() { - return $( whence $1 >/dev/null ) -} - # autocomplete settings zstyle ':autocomplete:tab:*' widget-style menu-select zstyle ':autocomplete:*' fzf-completion yes @@ -47,10 +41,4 @@ then fi # ZSH prompt -if _has starship; -then - znap eval starship 'starship init zsh --print-full-init' -else - echo "You should try installing the starship prompt 🚀" - znap prompt ohmyzsh/ohmyzsh robbyrussell -fi +znap eval starship 'starship init zsh --print-full-init'