# - $1: Script name
# - $2: Stage name (ax-io, zprofile, zshrc, zlogin, zlogout)
function axzsh_handle_stage {
- name="$1"
- type="$2"
+ local name="$1"
+ local type="$2"
[[ -n "$AXZSH_DEBUG" ]] && echo "ยป $name ($type):"
# Initialize cache
mkdir -p "$AXZSH/cache"
- cache_file="$AXZSH/cache/$type.cache"
+ local cache_file="$AXZSH/cache/$type.cache"
- cat_cmd=${commands[cat]:-cat}
+ local cat_cmd=${commands[cat]:-cat}
if [[ -r "$cache_file" ]]; then
# Cache file exists, use it!
else
# No cache file available.
# Setup list of plugins to load:
+ local plugin_list
typeset -U plugin_list
plugin_list=(
"$AXZSH/core/"[0-5]*