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

Re: Can $PATH look into sub-folders?




On 25/08/2021 15:51, Peter Stephenson wrote:
On 25 August 2021 at 15:17 TJ Luoma <luomat@xxxxxxxxx> wrote:
It is my understanding the zsh (and others) do not usually look into
sub-folders of $PATH for commands.

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/**/*(/))

pws

I guess we can also have tilda exclusions?






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