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

Re: Can $PATH look into sub-folders?




On Aug 25, 2021 at 10:51:33 AM, Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> wrote:

Secondly, use recursive globbing to add the directories to path, so at
least you don't need to do that explicitly.  In other words,

path+=(/usr/local/bin/**/*(/))


Dang, that is both clever and smart. I think that will work perfectly.

At this point I only anticipate having one level of sub-folder, but who knows? That might change in the future.

Thank you!

~ Tj




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