Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: multiple OSes
- X-seq: zsh-users 12172
 
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
 
- To: Michael Hernandez <sequethin@xxxxxxxxx>
 
- Subject: Re: multiple OSes
 
- Date: Thu, 01 Nov 2007 17:03:57 +0000
 
- Cc: zsh-users@xxxxxxxxxx
 
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws;  s=s1024; d=yahoo.co.uk;  h=Received:X-YMail-OSG:Received:cc:In-reply-to:From:References:To:Subject:Date:Message-ID;  b=YyaQZnrVAAEhfQNyxOn7Unz+XDWXs/k950qAWBtVTPrbZMX6N7TIV4i5XHBQietN+nL9g8fa0l5r9q9UFKU/5JZls3l9MxQcJJZWHwkYjueO1eE3dbMVY/SoKoyG2S3dgypM29B/tm0AshQ4pjExF/eGx3T2XXoRjj4gBohTG9c=  ;
 
- In-reply-to: <E9A8A335-5E08-4C06-B924-B950CD81B4E3@xxxxxxxxx> 
 
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
 
- References: <20071101093453.40647.qmail@xxxxxxxxxxx> <23405.1193932961@thecus> <E9A8A335-5E08-4C06-B924-B950CD81B4E3@xxxxxxxxx>
 
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author