2022-10-06 16:35:12 +02:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
|
2023-05-08 23:55:41 +02:00
|
|
|
! [[ -z $DEBUG ]] && set -x
|
|
|
|
|
2022-10-06 16:35:12 +02:00
|
|
|
# clone antidote if necessary
|
2023-05-08 23:55:41 +02:00
|
|
|
if [[ -d ~/.antidote ]]; then
|
|
|
|
git -C ~/.antidote pull
|
|
|
|
else
|
|
|
|
git clone https://github.com/mattmc3/antidote.git ~/.antidote
|
|
|
|
fi
|
2022-10-06 16:35:12 +02:00
|
|
|
|
|
|
|
# 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
|