feat(zinit): integrate zinit for improved shell configuration #1
No files matched your search
+12
-10
@@ -1,8 +1,8 @@
|
|||||||
# install zinit
|
# install zinit
|
||||||
source $ZDOTDIR/zinit.zsh
|
source $ZDOTDIR/zinit
|
||||||
|
|
||||||
# load remote plugins
|
# load remote plugins
|
||||||
zinit wait lucid light-mode for \
|
zinit wait lucid light-mode id-as depth"1" for \
|
||||||
wintermi/zsh-brew \
|
wintermi/zsh-brew \
|
||||||
hlissner/zsh-autopair \
|
hlissner/zsh-autopair \
|
||||||
Aloxaf/fzf-tab \
|
Aloxaf/fzf-tab \
|
||||||
@@ -14,26 +14,28 @@ zinit wait lucid light-mode for \
|
|||||||
zsh-users/zsh-completions
|
zsh-users/zsh-completions
|
||||||
|
|
||||||
# load prompt theme
|
# 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" \
|
atclone"./starship init zsh > init.zsh; ./starship completions zsh > _starship" \
|
||||||
atpull"%atclone" src"init.zsh"
|
atpull"%atclone" src"init.zsh"
|
||||||
zinit light starship/starship
|
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" id-as for \
|
||||||
extract"!" lsd-rs/lsd \
|
extract"!" lsd-rs/lsd \
|
||||||
extract"!" zyedidia/micro \
|
extract"!" zyedidia/micro \
|
||||||
extract"!" cp"autocomplete/bat.zsh -> _bat" @sharkdp/bat \
|
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 \
|
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" \
|
||||||
ajeetdsouza/zoxide \
|
ajeetdsouza/zoxide \
|
||||||
atclone"./fzf --zsh > init.zsh" atpull="%atclone" src"init.zsh" \
|
atclone"./fzf --zsh > init.zsh" atpull="%atclone" src"init.zsh" \
|
||||||
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 --shell zsh > init.zsh; ./fnm completions --shell zsh > _fnm" atpull"%atclone" src"init.zsh" Schniz/fnm
|
||||||
|
|
||||||
# load local scripts
|
# load local scripts
|
||||||
source $ZDOTDIR/exports.zsh
|
zinit is-snippet id-as for \
|
||||||
source $ZDOTDIR/aliases.zsh
|
$ZDOTDIR/snippets/exports \
|
||||||
source $ZDOTDIR/options.zsh
|
$ZDOTDIR/snippets/aliases \
|
||||||
source $ZDOTDIR/bin.zsh
|
$ZDOTDIR/snippets/options \
|
||||||
|
$ZDOTDIR/snippets/bin
|
||||||
|
|
||||||
File renamed without changes.
File renamed without changes.
@@ -1,13 +1,11 @@
|
|||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
HISTSIZE=1000000
|
|
||||||
SAVEHIST=1000000
|
|
||||||
|
|
||||||
export MANWIDTH=999
|
export MANWIDTH=999
|
||||||
|
|
||||||
export EDITOR="micro"
|
export EDITOR="micro"
|
||||||
export PAGER="bat"
|
export PAGER="bat"
|
||||||
export VISUAL="micro"
|
export VISUAL="micro"
|
||||||
export SUDO_EDITOR="micro"
|
export SUDO_EDITOR="micro"
|
||||||
|
export COMPANY_DIR="$HOME/Documents/work/company/"
|
||||||
|
|
||||||
export STARSHIP_CONFIG="$XDG_CONFIG_HOME"/starship/starship.toml
|
export STARSHIP_CONFIG="$XDG_CONFIG_HOME"/starship/starship.toml
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
unsetopt BEEP
|
unsetopt BEEP
|
||||||
setopt AUTO_CD
|
setopt AUTO_CD
|
||||||
setopt GLOB_DOTS
|
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_REDUCE_BLANKS # Remove superfluous blanks before recording entry.
|
||||||
setopt HIST_VERIFY # Don't execute immediately upon history expansion.
|
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.
Reference in new issue
Block a user