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

Re: multiple OSes




On Nov 1, 2007, at 1:03 PM, Oliver Kiddle wrote:

Michael Hernandez wrote:

this way I keep my path tidy and zsh doesn't bother looking in dirs
that don't exist.

You don't need the for loop to tidy up non-existant directories. The
following should do the trick:
 path=( $^path(N) )

Also useful is to add typeset -U path to be sure there are no
duplicates.

Oliver


Nice! I've had that loop in there for years! Thanks :)

--Mike H



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