zsh: remove fallback when starship is not present
This commit is contained in:
parent
281c3d8907
commit
dbdd70b810
1 changed files with 1 additions and 13 deletions
14
zsh/.zshrc
14
zsh/.zshrc
|
@ -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;
|
znap eval starship 'starship init zsh --print-full-init'
|
||||||
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
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue