##################### ### INSTALL ZINIT ### ##################### if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then print -P "%F{33} %F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f" command mkdir -p "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/share/zinit" command git clone https://github.com/zdharma-continuum/zinit "$HOME/.local/share/zinit/zinit.git" && \ print -P "%F{33} %F{34}Installation successful.%f%b" || \ print -P "%F{160} The clone has failed.%f%b" fi ################### ### START ZINIT ### ################### source "$HOME/.local/share/zinit/zinit.git/zinit.zsh" autoload -Uz _zinit (( ${+_comps} )) && _comps[zinit]=_zinit ############# ### THEME ### ############# zinit ice depth=1; zinit light romkatv/powerlevel10k ############### ### PLUGINS ### ############### # FZF zinit ice from"gh-r" as"command" bpick"*linux_amd64*" zinit light junegunn/fzf # FZF BYNARY AND TMUX HELPER SCRIPT zinit ice lucid wait"0c" as"command" id-as"junegunn/fzf-tmux" pick"bin/fzf-tmux" zinit light junegunn/fzf # BIND MULTIPLE WIDGETS USING FZF zinit ice lucid wait"0c" multisrc"shell/{completion,key-bindings}.zsh" id-as"junegunn/fzf_completions" pick"/dev/null" zinit light junegunn/fzf # FZF-TAB zinit ice wait="1" lucid zinit light Aloxaf/fzf-tab # AUTOSUGGESTIONS, TRIGGER PRECMD HOOK UPON LOAD ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20 zinit ice wait"0a" lucid atload"_zsh_autosuggest_start" zinit light zsh-users/zsh-autosuggestions # # # ENHANCED # zinit ice wait="0b" lucid # zinit light b4b4r07/enhanced # export ENHANCD_FILTER=fzf:fzy:peco #SYNTAX HIGHLIGHTING zinit ice wait"0c" lucid atinit"zpcompinit;zpcdreplay" zinit light zdharma-continuum/fast-syntax-highlighting # ZOXIDE zinit ice wait"0" lucid from"gh-r" as"program" pick"zoxide-*/zoxide -> zoxide" cp"zoxide-*/completions/_zoxide -> _zoxide" atclone"./zoxide init zsh > init.zsh" atpull"%atclone" src"init.zsh" zinit light ajeetdsouza/zoxide # TAB COMPLETIONS # zinit ice wait="0b" lucid blockf # zinit light zsh-users/zsh-completions