tarjoilija / zgen

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

Avoid loading autoloaded file #132

Open syohex opened 3 years ago

syohex commented 3 years ago

In zsh file name convention, file name of which starts with '_' is an autoloaded file. It should not be loaded manually.

This fixes https://github.com/zsh-users/zsh-completions/issues/809

jandamm commented 3 years ago

I've fixed this issue at zgenom. Your solution prohibits the user to manually load a file which starts with _. zgen load <plugin> path/to/_file.sh would not source this file.