1
0
Fork 0

zsh: automatic antidote setup

This commit is contained in:
tastytea 2024-04-18 21:19:11 +02:00
parent 96c477972e
commit f799a8912f
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 4 additions and 0 deletions

View File

@ -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