feat(zsh): switch from antigen to antidote

This commit is contained in:
Matej Janezic 2024-09-24 22:40:41 +02:00
parent 875ee44e7c
commit 5de5edca67
Signed by: janezicmatej
GPG Key ID: 4298E230ED37B2C0
3 changed files with 23 additions and 20 deletions

1
.gitignore vendored
View File

@ -17,6 +17,7 @@ zsh/*
!zsh/.zshrc !zsh/.zshrc
!zsh/.zshenv !zsh/.zshenv
!zsh/.zprofile !zsh/.zprofile
!zsh/.zsh_plugins.txt
!zsh/scripts.zsh !zsh/scripts.zsh
!zsh/aliases.zsh !zsh/aliases.zsh
!zsh/completions/.keep !zsh/completions/.keep

17
zsh/.zsh_plugins.txt Normal file
View File

@ -0,0 +1,17 @@
# set up Zsh completions with plugins
# mattmc3/ez-compinit
zsh-users/zsh-completions kind:fpath path:src
# frameworks like oh-my-zsh are supported
getantidote/use-omz # handle OMZ dependencies
ohmyzsh/ohmyzsh path:lib # load OMZ's library
ohmyzsh/ohmyzsh path:plugins/git
# theme
romkatv/powerlevel10k
# popular fish-like plugins
zsh-users/zsh-autosuggestions
# nvm
lukechilds/zsh-nvm

View File

@ -9,28 +9,13 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi fi
# pre plugin load ## pre plugin load
# nvm
export NVM_COMPLETION=true export NVM_COMPLETION=true
# load antigen # source antidote
typeset -a ANTIGEN_CHECK_FILES=(${ZDOTDIR:-~}/.zshrc ${ZDOTDIR:-~}/antigen.zsh) source $ZDOTDIR/.antidote/antidote.zsh
source $ZDOTDIR/antigen.zsh antidote load
# oh-my-zsh library and git plugin
antigen use oh-my-zsh
antigen bundle git
# zsh users plugin
antigen bundle zsh-users/zsh-autosuggestions
# other
antigen bundle lukechilds/zsh-nvm
# theme
antigen theme romkatv/powerlevel10k
# apply plugin load
antigen apply
unsetopt autocd unsetopt autocd