From 5de5edca67db1d742aefb88a23454bc4e03d37c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Tue, 24 Sep 2024 22:40:41 +0200 Subject: [PATCH] feat(zsh): switch from antigen to antidote --- .gitignore | 1 + zsh/.zsh_plugins.txt | 17 +++++++++++++++++ zsh/.zshrc | 25 +++++-------------------- 3 files changed, 23 insertions(+), 20 deletions(-) create mode 100644 zsh/.zsh_plugins.txt diff --git a/.gitignore b/.gitignore index f5d8912..3f6dd84 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ zsh/* !zsh/.zshrc !zsh/.zshenv !zsh/.zprofile +!zsh/.zsh_plugins.txt !zsh/scripts.zsh !zsh/aliases.zsh !zsh/completions/.keep diff --git a/zsh/.zsh_plugins.txt b/zsh/.zsh_plugins.txt new file mode 100644 index 0000000..b5e2aa9 --- /dev/null +++ b/zsh/.zsh_plugins.txt @@ -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 diff --git a/zsh/.zshrc b/zsh/.zshrc index 9812779..d09062f 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -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" fi -# pre plugin load +## pre plugin load +# nvm export NVM_COMPLETION=true -# load antigen -typeset -a ANTIGEN_CHECK_FILES=(${ZDOTDIR:-~}/.zshrc ${ZDOTDIR:-~}/antigen.zsh) -source $ZDOTDIR/antigen.zsh - -# 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 +# source antidote +source $ZDOTDIR/.antidote/antidote.zsh +antidote load unsetopt autocd