|
@@ -11,7 +11,7 @@ command mkdir -p "$ZSH_CACHE_DIR/completions"
|
|
# bind it to `cargo`. Otherwise, compinit will have already done that
|
|
# bind it to `cargo`. Otherwise, compinit will have already done that
|
|
if [[ ! -f "$ZSH_CACHE_DIR/completions/_cargo" ]]; then
|
|
if [[ ! -f "$ZSH_CACHE_DIR/completions/_cargo" ]]; then
|
|
autoload -Uz _cargo
|
|
autoload -Uz _cargo
|
|
- declare -A _comps
|
|
|
|
|
|
+ typeset -g -A _comps
|
|
_comps[cargo]=_cargo
|
|
_comps[cargo]=_cargo
|
|
fi
|
|
fi
|
|
|
|
|
|
@@ -19,7 +19,7 @@ fi
|
|
# bind it to `rustup`. Otherwise, compinit will have already done that
|
|
# bind it to `rustup`. Otherwise, compinit will have already done that
|
|
if [[ ! -f "$ZSH_CACHE_DIR/completions/_rustup" ]]; then
|
|
if [[ ! -f "$ZSH_CACHE_DIR/completions/_rustup" ]]; then
|
|
autoload -Uz _rustup
|
|
autoload -Uz _rustup
|
|
- declare -A _comps
|
|
|
|
|
|
+ typeset -g -A _comps
|
|
_comps[rustup]=_rustup
|
|
_comps[rustup]=_rustup
|
|
fi
|
|
fi
|
|
|
|
|