zsh-users
 help / color / mirror / code / Atom feed
From: Roman Neuhauser <neuhauser@sigpipe.cz>
To: Johan DS <victor3xray@gmail.com>
Cc: TJ Luoma <luomat@gmail.com>, Zsh-Users List <zsh-users@zsh.org>
Subject: Re: Sub-folders in $PATH?
Date: Mon, 4 Jul 2016 11:28:54 +0200	[thread overview]
Message-ID: <20160704092854.GV3514@isis.sigpipe.cz> (raw)
In-Reply-To: <CAEyXbzcge3DWff-uFy4+ZL3Nbbbqs+FyYcBOMVkBLugv7--jzg@mail.gmail.com>

# victor3xray@gmail.com / 2016-07-03 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

you could replace both exports with

path+=(
  {/usr/local,/usr,}/bin
  {/usr/local,/usr,}/sbin
  ~/bin/*(/N)
)

-- 
roman


  reply	other threads:[~2016-07-04  9:37 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 [this message]
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

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=20160704092854.GV3514@isis.sigpipe.cz \
    --to=neuhauser@sigpipe.cz \
    --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).