URI:
       zsh: conditionally use zinit for starship - dotfiles - 🍚 personal arsenal of "rice"
  HTML git clone https://git.drkhsh.at/dotfiles.git
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
   DIR commit 6b3d8e7f414c8a391eae9b0ad972b9c19a10d362
   DIR parent 272338dc2a2571ccd31dcd404cf988c4108c354c
  HTML Author: drkhsh <me@drkhsh.at>
       Date:   Wed, 11 Sep 2024 13:32:31 +0200
       
       zsh: conditionally use zinit for starship
       
       Diffstat:
         M zsh/.config/zsh/99-zinit.zsh        |      14 +++++++++-----
       
       1 file changed, 9 insertions(+), 5 deletions(-)
       ---
   DIR diff --git a/zsh/.config/zsh/99-zinit.zsh b/zsh/.config/zsh/99-zinit.zsh
       @@ -43,12 +43,16 @@ zinit ice depth=1; zinit wait lucid light-mode for \
          blockf atpull'zinit creinstall -q .' \
              zsh-users/zsh-completions
        
       -# undefine helpers
       -unfunction _exists _openbsd _qubes
       -
        # starship prompt
       -zinit ice from"gh-r" as"command" atload'eval "$(starship init zsh)"'
       -zinit light starship/starship
       +if ! _exists starship; then
       +        zinit ice from"gh-r" as"command" atload'eval "$(starship init zsh)"'
       +        zinit light starship/starship
       +else
       +        eval "$(starship init zsh)"
       +fi
        
        # plan9port
        [ $TERM = "dumb" ] && _exists rc && rc
       +
       +# undefine helpers
       +unfunction _exists _openbsd _qubes