diff --git a/zsh/zshrc b/zsh/zshrc index cf2974f..4caf67d 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -77,4 +77,8 @@ function cdi() { } # using starship as prompt -eval "$(starship init zsh)" +if (( $+commands[starship] )); then + eval "$(starship init zsh)" +else + echo '[starship] not found, please install it.' +fi