From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6407 invoked by alias); 13 Feb 2015 15:52:31 -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: 19868 Received: (qmail 14401 invoked from network); 13 Feb 2015 15:52:18 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 X-AuditID: cbfec7f5-b7fc86d0000066b7-c1-54de1d1b8197 Date: Fri, 13 Feb 2015 15:52:12 +0000 From: Peter Stephenson To: Zsh Users Subject: Re: directory specific functions and aliases Message-id: <20150213155212.49ed641f@pwslap01u.europe.root.pri> In-reply-to: <20150213154138.118cf396@pwslap01u.europe.root.pri> References: <20150213154138.118cf396@pwslap01u.europe.root.pri> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrGLMWRmVeSWpSXmKPExsVy+t/xK7rSsvdCDN5+k7XYcXIlowOjx6qD H5gCGKO4bFJSczLLUov07RK4Mpa/XMBWcJW54tvMhywNjJ+Zuhg5OSQETCRWX7vKBmGLSVy4 tx7I5uIQEljKKHHm6HxmCGcRk8SlH5uhMtsYJZ7sWcoK0sIioCqx/9kzsHY2AUOJqZtmM4LY IgKKEmd+fQNawcEhLGAqcWWWJEiYV8Be4saRFrASTgEHiaOr5kDN7GCU2Ly9iQUkwS+gL3H1 7yeo8+wlZl45wwjRLCjxY/I9sBpmAS2JzduaWCFseYnNa94yg9hCAuoSN+7uZp/AKDQLScss JC2zkLQsYGRexSiaWppcUJyUnmukV5yYW1yal66XnJ+7iREStl93MC49ZnWIUYCDUYmHV7Hh bogQa2JZcWXuIUYJDmYlEd6IG0Ah3pTEyqrUovz4otKc1OJDjEwcnFINjCK3WJ5qTwxTKbAM kD3mJ5PjcfPBlPg1DQ4R+26fOXPtxuYHyRlhQru5KjTmNT1tO6zKcjFpa4fer/MC90SylWLk c08cXnjGX195WtSu37Mjr8TkV2x78cbOQTvt4J2v8ekM36SzHSTLlzllJ33+efHXCwOGK3NN pq4MFhY+5OSn9CkpY8EdTSWW4oxEQy3mouJEAK1gjpE5AgAA On Fri, 13 Feb 2015 15:41:38 +0000 Peter Stephenson wrote: > You can easily search backward for a > file of the same name in a parent directory if you have EXTENDED_GLOB > set: (../)#.thatdotfilename which will allow you to put in the top level > of a repository. Come to think of it, that can produce multiple matches. (../)#foo(oL[1]) gets you the first one you encounter going up (the one with the shortest name). pws