Skip to content

Instantly share code, notes, and snippets.

@Termina1
Last active March 25, 2021 21:03
Show Gist options
  • Save Termina1/8dd4243613cfbd23a24f8a5d1da9b871 to your computer and use it in GitHub Desktop.
Save Termina1/8dd4243613cfbd23a24f8a5d1da9b871 to your computer and use it in GitHub Desktop.
#!/bin/zsh
export XDG_CACHE_HOME=${XDG_CACHE_HOME:=~/.cache}
typeset -A ZINIT
ZINIT_HOME=$XDG_CACHE_HOME/zsh/zinit
ZINIT[HOME_DIR]=$ZINIT_HOME
ZINIT[ZCOMPDUMP_PATH]=$XDG_CACHE_HOME/zsh/zcompdump
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
if [[ ! -f $ZINIT_HOME/bin/zinit.zsh ]]; then
git clone https://github.com/zdharma/zinit $ZINIT_HOME/bin
zcompile $ZINIT_HOME/bin/zinit.zsh
fi
source $ZINIT_HOME/bin/zinit.zsh
load=light
zinit $load willghatch/zsh-saneopt
zinit $load sindresorhus/pure
zinit ice svn pick"init.zsh"
zinit snippet PZT::modules/git
zinit ice nocompile:! pick:c.zsh atpull:%atclone atclone:'dircolors -b LS_COLORS > c.zsh'
zinit $load trapd00r/LS_COLORS
zinit ice silent wait:1 atload:_zsh_autosuggest_start
zinit ice blockf; zinit $load zsh-users/zsh-completions
zinit ice silent wait!1 atload"ZINIT[COMPINIT_OPTS]=-C; zpcompinit"
zinit $load zdharma/fast-syntax-highlighting
zinit from"gh-r" as"program" mv"direnv* -> direnv" \
atclone'./direnv hook zsh > zhook.zsh' atpull'%atclone' \
pick"direnv" src="zhook.zsh" for \
direnv/direnv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment