From dba0d5ab999e8bbaab271eb2520ff82858d13311 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 4 May 2021 09:56:51 +1000 Subject: [PATCH] feat: load Starship instead of Pure if it's available --- config/zsh/zinit | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config/zsh/zinit b/config/zsh/zinit index 648ad65..a444de9 100644 --- a/config/zsh/zinit +++ b/config/zsh/zinit @@ -14,7 +14,12 @@ zinit $load willghatch/zsh-saneopt zinit $load mafredri/zsh-async zinit $load rupa/z -zinit $load sindresorhus/pure + +if (( $+commands[starship] )); then + source <(starship init zsh --print-full-init) +else + zinit $load sindresorhus/pure +fi zinit ice nocompile:! pick:c.zsh atpull:%atclone atclone:'dircolors -b LS_COLORS > c.zsh' zinit $load trapd00r/LS_COLORS