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
6 changed files with 16 additions and 14 deletions
Showing only changes of commit 801449db29 - Show all commits

No files matched your search

+12 -10
View File
@@ -1,8 +1,8 @@
# install zinit
source $ZDOTDIR/zinit.zsh
source $ZDOTDIR/zinit
# load remote plugins
zinit wait lucid light-mode for \
zinit wait lucid light-mode id-as depth"1" for \
wintermi/zsh-brew \
hlissner/zsh-autopair \
Aloxaf/fzf-tab \
@@ -14,26 +14,28 @@ zinit wait lucid light-mode for \
zsh-users/zsh-completions
# load prompt theme
zinit ice as"command" from"gh-r" \
zinit ice as"command" from"gh-r" id-as \
atclone"./starship init zsh > init.zsh; ./starship completions zsh > _starship" \
atpull"%atclone" src"init.zsh"
zinit light starship/starship
# load binaries
zinit as"command" wait lucid light-mode from"gh-r" for \
zinit as"command" wait lucid light-mode from"gh-r" id-as for \
extract"!" lsd-rs/lsd \
extract"!" zyedidia/micro \
extract"!" cp"autocomplete/bat.zsh -> _bat" @sharkdp/bat \
extract"!" atclone="cp usr/bin/fastfetch .; rm -rf usr" atpull"%atclone" \
extract"!" pick"usr/bin/fastfetch" \
fastfetch-cli/fastfetch \
atclone"./zoxide init zsh > init.zsh" atpull"%atclone" src"init.zsh" \
ajeetdsouza/zoxide \
atclone"./fzf --zsh > init.zsh" atpull="%atclone" src"init.zsh" \
junegunn/fzf \
atclone"./fnm env --use-on-cd > init.zsh" atpull"%atclone" src"init.zsh" Schniz/fnm
atclone"./fnm env --use-on-cd --shell zsh > init.zsh; ./fnm completions --shell zsh > _fnm" atpull"%atclone" src"init.zsh" Schniz/fnm
# load local scripts
source $ZDOTDIR/exports.zsh
source $ZDOTDIR/aliases.zsh
source $ZDOTDIR/options.zsh
source $ZDOTDIR/bin.zsh
zinit is-snippet id-as for \
$ZDOTDIR/snippets/exports \
$ZDOTDIR/snippets/aliases \
$ZDOTDIR/snippets/options \
$ZDOTDIR/snippets/bin
File renamed without changes.
File renamed without changes.
@@ -1,13 +1,11 @@
#!/usr/bin/env zsh
HISTSIZE=1000000
SAVEHIST=1000000
export MANWIDTH=999
export EDITOR="micro"
export PAGER="bat"
export VISUAL="micro"
export SUDO_EDITOR="micro"
export COMPANY_DIR="$HOME/Documents/work/company/"
export STARSHIP_CONFIG="$XDG_CONFIG_HOME"/starship/starship.toml
@@ -1,3 +1,5 @@
#!/usr/bin/env zsh
unsetopt BEEP
setopt AUTO_CD
setopt GLOB_DOTS
@@ -24,4 +26,4 @@ setopt HIST_SAVE_NO_DUPS # Don't write duplicate entries in the history
setopt HIST_REDUCE_BLANKS # Remove superfluous blanks before recording entry.
setopt HIST_VERIFY # Don't execute immediately upon history expansion.
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"
File renamed without changes.