From a6e1eab8647d5b09f1ccb1c03f31027b3628fca0 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sun, 25 Jul 2021 11:19:35 +0200 Subject: Updated install script to download zsh plugins in parallel --- install | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'install') 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 -- cgit