Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

RE: FPATH being reset after .zshenv



>
> I've looked into it some more, and found the culprit. I had the following
> line earlier on:
>
> typeset -U FPATH
>
> which obviously makes the parameter local as a side effect. I've
> changed it
> to -Ug now which is working fine.
>

What do you mean exactly? If you used it in a *function* inside a .zshenv
and then changed FPATH inside the same function, then it should have
described effect.

I just tried with ~/.zshenv looking like

FPATH=foo:$FPATH
typeset -U FPATH

and fpath is not cleared (and never was).

Could you show your .zshrc?

-andrej



Messages sorted by: Reverse Date, Date, Thread, Author