# remove any further occurences to capture elements from the old PATH
# that we did not anticipate and shift them to the front, since they are
# probably important to the system
- typeset -U path fpath
+ typeset -gU path fpath
# add as many generic paths as possible to keep the order we want
# NOTE: /usr/{local,pkg,games} are unix/bsdisms
# XXX: PREFIX not validated, non-posix but Termux uses it, maybe others
# FPATH is not exported by default
export FPATH
typeset +U path fpath
- unset syspath len i
}
### common exports