Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: multiple OSes
- X-seq: zsh-users 12178
- From: Michael Hernandez <sequethin@xxxxxxxxx>
- To: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- Subject: Re: multiple OSes
- Date: Fri, 2 Nov 2007 07:41:35 -0400
- Cc: zsh-users@xxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=4c/jQqzA3RTLhbj99eIAdF8krsM8xhPvuHguBwpDHX8=; b=UHs6tgEw5yZUCFZtNAiQYNdWU1Ls+FDhZpGhFDxLkmSFGG4sTZdn4AsrHHUrIrrRYy872fBYBdnVfrEebbJlKvsZkdOeFnEnpXD10jgiWgCTG4CtrjmoApeN+LzxPITlXDOk7qeRB2qKxVViTkir9mNMR5DXMREZj+vcWiI8ygw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; b=orcvTc7DA5hyr+Skdqi2QMvkevDFHwDaduNB4uytPDkkDe2CAO4Ps4DDqt5TKjUSwdy1Amw1fORjIU5Hn+FbNlLpPz29OUTpK/t4Bt4tCLb3PnDvZQKuub9ci7To+Bega72UvSqlh2TA9rFq+zZGR22WLc2K8YJrNgE3aHBr97o=
- In-reply-to: <23615.1193936637@thecus>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20071101093453.40647.qmail@xxxxxxxxxxx> <23405.1193932961@thecus> <E9A8A335-5E08-4C06-B924-B950CD81B4E3@xxxxxxxxx> <23615.1193936637@thecus>
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