From 429f8fc2d6121e37b3344ba44e6b82591f5eb249 Mon Sep 17 00:00:00 2001 From: gwbeip Date: Wed, 21 Jan 2026 14:13:22 +0800 Subject: [PATCH] using startship when it is installedw --- zsh/zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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