From b181c95d891b2b27b83796575958bb7bc250f808 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Mon, 10 Apr 2017 13:15:55 +0200 Subject: [PATCH] axzshctl: Add "update-caches" command --- bin/axzshctl | 6 ++++++ core/50_axzsh/functions/_axzsh | 1 + 2 files changed, 7 insertions(+) diff --git a/bin/axzshctl b/bin/axzshctl index 64402bf..405f955 100755 --- a/bin/axzshctl +++ b/bin/axzshctl @@ -45,6 +45,8 @@ function Usage { echo echo " upgrade" echo " Upgrade AX-ZSH installation (requires Git)." + echo " update-caches" + echo " Force rebuild of all cache files." echo exit 2 } @@ -374,6 +376,10 @@ case "$cmd" in UpgradeForeignPlugins UpdatePluginCache ;; + "update-caches") + [[ $# -eq 0 ]] || Usage + UpdatePluginCache + ;; *) Usage esac diff --git a/core/50_axzsh/functions/_axzsh b/core/50_axzsh/functions/_axzsh index 2a62f29..d8ed1b9 100644 --- a/core/50_axzsh/functions/_axzsh +++ b/core/50_axzsh/functions/_axzsh @@ -13,6 +13,7 @@ _axzshctl() { check-plugins\:"Check \"useful\" plugins." set-theme\:"Set active theme." upgrade\:"Upgrade AX-ZSH installation (requires Git)." + update-caches\:"Force rebuild of all cache files." ))' \ '*: :->args' # -- 2.39.2