aboutsummaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-07-25 11:19:35 +0200
committerCharles Cabergs <me@cacharle.xyz>2021-07-25 11:19:35 +0200
commita6e1eab8647d5b09f1ccb1c03f31027b3628fca0 (patch)
tree82723115a24b2b609dfdc14c46816615b078eea0 /install
parente096c50387dc27e7624bfb8bcb76066207cb1c49 (diff)
downloaddotfiles-a6e1eab8647d5b09f1ccb1c03f31027b3628fca0.tar.gz
dotfiles-a6e1eab8647d5b09f1ccb1c03f31027b3628fca0.tar.bz2
dotfiles-a6e1eab8647d5b09f1ccb1c03f31027b3628fca0.zip
Updated install script to download zsh plugins in parallel
Diffstat (limited to 'install')
-rwxr-xr-xinstall9
1 files changed, 6 insertions, 3 deletions
diff --git a/install b/install
index a1e8d77..82ffcdc 100755
--- a/install
+++ b/install
@@ -70,9 +70,12 @@ update_zsh_plugin()
}
mkdir -p "$XDG_DATA_HOME/zsh"
-update_zsh_plugin 'https://github.com/sindresorhus/pure'
-update_zsh_plugin 'https://github.com/zsh-users/zsh-syntax-highlighting'
-update_zsh_plugin 'https://github.com/MichaelAquilina/zsh-you-should-use'
+update_zsh_plugin 'https://github.com/sindresorhus/pure' & pids="$pids $!"
+update_zsh_plugin 'https://github.com/zsh-users/zsh-syntax-highlighting' & pids="$pids $!"
+update_zsh_plugin 'https://github.com/MichaelAquilina/zsh-you-should-use' & pids="$pids $!"
+# Parallel downloads are faster
+# shellcheck disable=SC2086
+wait $pids
###############################################################################
# crontab