]> arthur.barton.de Git - ax-zsh.git/commitdiff
axzshctl: Add "update-caches" command
authorAlexander Barton <alex@barton.de>
Mon, 10 Apr 2017 11:15:55 +0000 (13:15 +0200)
committerAlexander Barton <alex@barton.de>
Mon, 10 Apr 2017 11:15:55 +0000 (13:15 +0200)
bin/axzshctl
core/50_axzsh/functions/_axzsh

index 64402bf70fed2d3bc03e2a79c83448463ed3c7ab..405f955a0e93147114aaa26865da941769d209af 100755 (executable)
@@ -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
index 2a62f29364ba8f4548a95fdabc694a94809d7fbb..d8ed1b9019caa5606aa96772e408576bd68cfc72 100644 (file)
@@ -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'
 #