Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Sub-folders in $PATH?
- X-seq: zsh-users 21724
- From: Johan DS <victor3xray@xxxxxxxxx>
- To: TJ Luoma <luomat@xxxxxxxxx>
- Subject: Re: Sub-folders in $PATH?
- Date: Sun, 3 Jul 2016 01:26:06 +0200
- Cc: Zsh-Users List <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+dNN21O/TuBlXyg0y+IE+JSBBwDskMs5fjlv7p9jRK8=; b=B1eFi+lEZiVZcch/CnGCmeT+nnpzDON1CPYLw7FOPIyzF82iAl/M6dFxOPa1iczVaZ yb1XS4plntDjLf4UPloXqr/bck1Qm0STSN7mtg6N6mE1HSdo1Um2Ih9l46/LYjORLdBq dvkDO4q7hOdQwtL604OLQ7Bl5JqGc/AvrGufBtDBefJICLUWPLNYEcS7ax+JmGhDEAoH aULwYyRdzxUy9JxLWzDlBvL+rkGw4hUwRbenrObvPJqdYr/GQC8s9Y5bQjr3Tw5gaeVA Q08zvefapnp9W09JFYgvhMD0EJlOKPSb4MZ4lmM7VGkrwMg7lyQAI2pzpa0MQAt/1WBD BHIA==
- In-reply-to: <CADjGqHtZ61wcSaL_SEKT7Kw=6DpByp9=mdz1eZbYyvgA8QCAZQ@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CADjGqHtZ61wcSaL_SEKT7Kw=6DpByp9=mdz1eZbYyvgA8QCAZQ@mail.gmail.com>
Hi
I have this in my .zshenv
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
On Sun, Jul 3, 2016 at 12:15 AM, TJ Luoma <luomat@xxxxxxxxx> wrote:
> Is there an option to have subfolders in a $PATH folder searched as well?
>
> For example, if I wanted to put some folders in /usr/local/bin/scripts/
> without explicitly adding /usr/local/bin/scripts/ to $PATH
> (assuming /usr/local/bin/ was already in there).
>
> TJ
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author