zconfig/update_antidote.sh
2023-05-08 23:55:41 +02:00

18 lines
429 B
Bash
Executable file

#!/usr/bin/env zsh
! [[ -z $DEBUG ]] && set -x
# clone antidote if necessary
if [[ -d ~/.antidote ]]; then
git -C ~/.antidote pull
else
git clone https://github.com/mattmc3/antidote.git ~/.antidote
fi
# source antidote
. ~/.antidote/antidote.zsh
# generate static plugins
antidote bundle < antidote.plugins.txt > antidote.plugins.zsh
[[ -f ~/.zsh_plugins.zsh ]] || ln -s $PWD/antidote.plugins.zsh ~/.zsh_plugins.zsh