zconfig/update_antidote.sh
2023-05-19 22:12:53 +02:00

19 lines
457 B
Bash
Executable file

#!/usr/bin/env zsh
echo "=> Updating antidote"
! [[ -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