X-Git-Url: https://arthur.barton.de/gitweb/?p=ax-zsh.git;a=blobdiff_plain;f=core%2F50_axzsh%2Ffunctions%2F_axzsh;h=2f6ab781f6c4b375c8c1138958e7cd3f8833b58b;hp=2a62f29364ba8f4548a95fdabc694a94809d7fbb;hb=15f0cf1b5813fb6b9159d71edcfcba952d57eecb;hpb=3c2e311872f54b6639122a085a969a41fb52e919 diff --git a/core/50_axzsh/functions/_axzsh b/core/50_axzsh/functions/_axzsh index 2a62f29..2f6ab78 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' # @@ -20,11 +21,14 @@ _axzshctl() { 'args') case "$words[2]" in "enable-plugin"|"disable-plugin") - compadd "$@" $(ls -1 "$AXZSH"/plugins) + compadd "$@" -- \ + $(ls -1 "$AXZSH"/plugins) \ + $(ls -1 "$AXZSH"/custom_plugins) ;; "set-theme") - [[ -z $words[3] ]] \ - && compadd "$@" -- "-" $(ls -1 "$AXZSH"/themes | cut -d'.' -f1) + compadd "$@" -- "-" \ + $(ls -1 "$AXZSH"/themes | cut -d'.' -f1) \ + $(find "$AXZSH/custom_plugins" "$AXZSH/repos" -maxdepth 2 -iname '*.zsh-theme' -exec basename {} \; | cut -d'.' -f1) ;; esac ;;