From d2024293020d10840f67e56b63edad75f7a65dbd Mon Sep 17 00:00:00 2001 From: Matthew Winter <33818+wintermi@users.noreply.github.com> Date: Tue, 2 May 2023 08:59:59 +1000 Subject: [PATCH] feat: cleanup updating all plugins output --- zap.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zap.zsh b/zap.zsh index e571f16..93926b5 100644 --- a/zap.zsh +++ b/zap.zsh @@ -77,7 +77,7 @@ function _zap_update() { for _plugin in ${ZAP_INSTALLED_PLUGINS[@]}; do printf '%4s 🔌 %s\n' $ZAP_INSTALLED_PLUGINS[(Ie)$_plugin] $_plugin done - echo -n "\n🔌 Plugin Number | (a) All Plugins | (0) ⚡ Zap Itself: " && read _plugin + echo -n "\n 🔌 Plugin Number | (0) ⚡ Zap Itself | (a) All Plugins | (⏎) Abort: " && read _plugin case $_plugin in [[:digit:]]*) [[ $_plugin -gt ${#ZAP_INSTALLED_PLUGINS[@]} ]] && { echo "❌ Invalid option" && return 1 } @@ -85,6 +85,7 @@ function _zap_update() { git -C "$ZAP_DIR" pull &> /dev/null && { echo -e "\e[1A\e[K⚡ Zap updated!"; return 0 } || { echo -e "\e[1A\e[K❌ Failed to pull"; return 14 } } || { _pull "$ZAP_PLUGIN_DIR/$ZAP_INSTALLED_PLUGINS[$_plugin]" } ;; 'a'|'A') + echo "\nUpdating All Plugins\n" for _plug in ${ZAP_INSTALLED_PLUGINS[@]}; do _pull "$ZAP_PLUGIN_DIR/$_plug" done ;;