feat(zinit): integrate zinit for improved shell configuration #1

Merged
vokhactri merged 17 commits from feat/zinit into main 2025-04-18 20:50:42 +07:00
Showing only changes of commit da6f073bdc - Show all commits
+5 -7
View File
@@ -13,10 +13,6 @@ zinit wait lucid light-mode for \
blockf atpull'zinit creinstall -q .' \ blockf atpull'zinit creinstall -q .' \
zsh-users/zsh-completions zsh-users/zsh-completions
# load local snippets
zinit snippet $ZDOTDIR/exports.zsh
zinit snippet $ZDOTDIR/aliases.zsh
# load prompt theme # load prompt theme
zinit ice as"command" from"gh-r" \ zinit ice as"command" from"gh-r" \
atclone"./starship init zsh > init.zsh; ./starship completions zsh > _starship" \ atclone"./starship init zsh > init.zsh; ./starship completions zsh > _starship" \
@@ -25,9 +21,9 @@ zinit light starship/starship
# load binaries # load binaries
zinit as"command" wait lucid light-mode from"gh-r" for \ zinit as"command" wait lucid light-mode from"gh-r" for \
extract"!" lsd-rs/lsd \ extract"!" atload="alias cat=bat" lsd-rs/lsd \
extract"!" zyedidia/micro \ extract"!" atload="alias nano=micro" zyedidia/micro \
extract"!" cp"autocomplete/bat.zsh -> _bat" @sharkdp/bat \ extract"!" cp"autocomplete/bat.zsh -> _bat" atload"alias cat=bat" @sharkdp/bat \
extract"!" atclone="cp usr/bin/fastfetch .; rm -rf usr" \ extract"!" atclone="cp usr/bin/fastfetch .; rm -rf usr" \
fastfetch-cli/fastfetch \ fastfetch-cli/fastfetch \
atclone"./zoxide init zsh > init.zsh" atpull"%atclone" src"init.zsh" \ atclone"./zoxide init zsh > init.zsh" atpull"%atclone" src"init.zsh" \
@@ -36,5 +32,7 @@ zinit as"command" wait lucid light-mode from"gh-r" for \
junegunn/fzf \ junegunn/fzf \
atclone"./fnm env --use-on-cd > init.zsh" atpull"%atclone" src"init.zsh" Schniz/fnm atclone"./fnm env --use-on-cd > init.zsh" atpull"%atclone" src"init.zsh" Schniz/fnm
# load local snippets
source $ZDOTDIR/exports.zsh
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'lsd -1 --color=always --icon=always $realpath' zstyle ':fzf-tab:complete:cd:*' fzf-preview 'lsd -1 --color=always --icon=always $realpath'