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

RE: FPATH being reset after .zshenv



>
> I would like to enable a number of my local functions for autoloading in
> all instances of zsh - interactive or otherwise.
>
> To do this I have modified fpath and registered functions for autoloading
> in the .zshenv file, which as I understand it is the only one it will
> always execute.
>

Even this one is skipped if zsh is started with -f or NO_RCS option is set
in /etc/zshenv. It is the only file that is garanteed to be executed.

> Unfortunately it seems that zsh resets the fpath after executing this file
> (it is empty while running the file). It does however, remember the
> autoload commands, which obviously then become useless.
>

I cannot reproduce it. Are you sure it is not reset in any other startup
file?

-andrej



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