Only source zsh files from top-level topic directories#311
Only source zsh files from top-level topic directories#311mattdodge wants to merge 2 commits intoholman:masterfrom
Conversation
a4a4252 to
f2f6c36
Compare
|
As mentioned in neomake/neomake#2123 (comment) you should have a whitelist instead probably, i.e. only certain folders. |
|
@blueyed makes a great point I think. Unless I've set up my dotfiles folder incorrectly, then a lot of plugin directories end up nested under the dotfiles folders (e.g. vim, tmux, zsh). Using the globstar I've modified this PR to only look in the top-level topic directories for zsh files to source. I think that's a bit more in the spirit of what this features is trying to do anyways. In fact the description on the README already kind of indicates it's only going to look in that top level (although I added a clarification just in case). |
Certain libraries and plugins (e.g. neomake) may have
.zshfiles in test folders. These are not intended to be sourced when starting up.