From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12886 invoked by alias); 4 Jul 2016 09:37:00 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21726 Received: (qmail 10651 invoked from network); 4 Jul 2016 09:36:59 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 Date: Mon, 4 Jul 2016 11:28:54 +0200 From: Roman Neuhauser To: Johan DS Cc: TJ Luoma , Zsh-Users List Subject: Re: Sub-folders in $PATH? Message-ID: <20160704092854.GV3514@isis.sigpipe.cz> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) # 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