From: sev Date: Fri, 20 Oct 2023 17:27:20 +0000 (-0500) Subject: zshenv: fix _sev_setpath X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/commitdiff_plain/10d5d9ba84814de3965d222c97b75b210c16e149 zshenv: fix _sev_setpath --- diff --git a/etc/zsh/.zshenv b/etc/zsh/.zshenv index 56f80dc..f961cfb 100644 --- a/etc/zsh/.zshenv +++ b/etc/zsh/.zshenv @@ -55,7 +55,7 @@ function _sev_setpath { # 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 @@ -92,7 +92,6 @@ function _sev_setpath { # FPATH is not exported by default export FPATH typeset +U path fpath - unset syspath len i } ### common exports