Even faster

This commit is contained in:
Sam A. 2022-09-18 21:57:18 +02:00
parent 7ec67fc7bc
commit b96a0a0358
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -17,11 +17,9 @@ static_file="$ZDOTDIR/.zsh_plugins.zsh"
# Clone antidote if necessary and generate a static plugin file # Clone antidote if necessary and generate a static plugin file
if [[ ! $static_file -nt $plugins_txt ]]; then if [[ ! $static_file -nt $plugins_txt ]]; then
[[ -e $antidote_dir ]] || [[ -e $antidote_dir ]] || git clone --depth=1 https://github.com/mattmc3/antidote.git $antidote_dir
git clone --depth=1 https://github.com/mattmc3/antidote.git $antidote_dir
( (
source $antidote_dir/antidote.zsh source $antidote_dir/antidote.zsh
[[ -e $plugins_txt ]] || touch $plugins_txt
antidote bundle <$plugins_txt >$static_file antidote bundle <$plugins_txt >$static_file
) )
fi fi