From f799a8912f69a9335e6bd59e9150b2665d1a8d01 Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 18 Apr 2024 21:19:11 +0200 Subject: [PATCH] zsh: automatic antidote setup --- .config/zsh/plugins.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/zsh/plugins.zsh b/.config/zsh/plugins.zsh index 8488bc3..4f0d338 100644 --- a/.config/zsh/plugins.zsh +++ b/.config/zsh/plugins.zsh @@ -70,6 +70,10 @@ fi [[ -z ${_my_plugins} ]] && return # If there are plugins not handled by the package manager, use antidote zstyle ':antidote:compatibility-mode' 'antibody' # TODO: switch to native mode +if [[ ! -f ${ZDOTDIR}/.antidote/antidote.zsh ]]; then + git clone --depth=1 https://github.com/mattmc3/antidote.git ${ZDOTDIR}/.antidote +fi +source ${ZDOTDIR}/.antidote/antidote.zsh if command -v antidote > /dev/null; then zmodload zsh/stat zmodload zsh/datetime