From dba0d5ab999e8bbaab271eb2520ff82858d13311 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 4 May 2021 09:56:51 +1000 Subject: [PATCH 1/2] 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 From a7a24f81f60721d3b893688bc2771015a64fab37 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Tue, 4 May 2021 09:57:26 +1000 Subject: [PATCH 2/2] feat: use Zinit packages for LS_COLORS, rather than custom setup --- config/zsh/zinit | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/zsh/zinit b/config/zsh/zinit index a444de9..80af74f 100644 --- a/config/zsh/zinit +++ b/config/zsh/zinit @@ -21,8 +21,7 @@ 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 +zinit pack:no-dir-color-swap for ls_colors zinit ice silent wait:1 atload:_zsh_autosuggest_start zinit $load zsh-users/zsh-autosuggestions