tarjoilija / zgen

A lightweight and simple plugin manager for ZSH
BSD 2-Clause "Simplified" License
1.5k stars 99 forks source link

How to load https://github.com/zimfw/archive? #130

Open scalp42 opened 4 years ago

scalp42 commented 4 years ago

Hi folks,

I'm trying to load https://github.com/zimfw/archive functions.

zgen load zimfw/archive functions
``

It does seem to make into `fpath` but I can't get it to work:

16:20:26 | echo $FPATH /Users/scalp/.zgen/zimfw/archive-master/functions:/Users/scalp/.zgen/robbyrussell/oh-my-zsh-master/plugins/cp



Am I missing something? Thanks in advance 🙏 
jandamm commented 3 years ago

Hi @scalp42, zgen is mostly unmaintained. I've created a fork called zgenom which has more features and some bugfixes. It's also 100% backwards compatible.

To answer your question: You're right that the files are added to your $fpath but zsh doesn't automatically autoloads things from your fpath. (Like it does with executables from your path). Adding autoload archive (and autoload unarchive) should make it work 👍