From: Roman Neuhauser <neuhauser@sigpipe.cz>
To: Daniel Shahaf <d.s@daniel.shahaf.name>
Cc: Johan DS <victor3xray@gmail.com>, TJ Luoma <luomat@gmail.com>,
Zsh-Users List <zsh-users@zsh.org>
Subject: Re: Sub-folders in $PATH?
Date: Tue, 5 Jul 2016 11:14:46 +0200 [thread overview]
Message-ID: <20160705091446.GW3514@isis.sigpipe.cz> (raw)
In-Reply-To: <20160705045753.GA8004@tarsus.local2>
# d.s@daniel.shahaf.name / 2016-07-05 04:57:53 +0000:
> Johan DS wrote on Sun, Jul 03, 2016 at 01:26:06 +0200:
> > export
> > PATH=$PATH:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:
> > [[ -d ~/bin ]] && export PATH=${PATH}:$(find ~/bin -type d | tr '\n' ':' |
> > sed 's/:$//') #include all ~/bin/subdirs
>
> Another way of doing the same thing:
>
> path+=(
> /usr/local/bin /usr/bin /bin /usr/local/sbin /usr/sbin /sbin
> ~/bin/**/*(/N)
> )
>
> (unlike Roman's solution this uses ** to be equivalent to the find(1))
yeah, sorry about that, i *meant* to use recursive glob.
--
roman
prev parent reply other threads:[~2016-07-05 9:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-02 22:15 TJ Luoma
2016-07-02 23:26 ` Johan DS
2016-07-04 9:28 ` Roman Neuhauser
2016-07-02 23:50 ` Nikolay Aleksandrovich Pavlov (ZyX)
[not found] ` <CAEyXbzcge3DWff-uFy4+ZL3Nbbbqs+FyYcBOMVkBLugv7--jzg__46346.1699583151$1467502045$gmane$org@mail.gmail.com>
2016-07-05 4:57 ` Daniel Shahaf
2016-07-05 9:14 ` Roman Neuhauser [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160705091446.GW3514@isis.sigpipe.cz \
--to=neuhauser@sigpipe.cz \
--cc=d.s@daniel.shahaf.name \
--cc=luomat@gmail.com \
--cc=victor3xray@gmail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).