zsh-workers
 help / color / mirror / code / Atom feed
* Re: directory specific functions and aliases
       [not found]     ` <20150213211159.GB12771__23092.9831196137$1423863146$gmane$org@neroon.zhar.net>
@ 2015-02-14 16:43       ` Christian Neukirchen
  0 siblings, 0 replies; only message in thread
From: Christian Neukirchen @ 2015-02-14 16:43 UTC (permalink / raw)
  To: zsh-workers

John Eikenberry <jae@zhar.net> writes:

> Peter Stephenson wrote:
>
>> On Fri, 13 Feb 2015 15:41:38 +0000
>> Peter Stephenson <p.stephenson@samsung.com> 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).
>
> I also use this for a local history and have found it made more sense to get
> the one with the longest name, the one 'closer' to you in the tree. I also
> found expanding the name useful (the :a). I use this...
>
> (../)#.zsh_history(oL[-1]:a))

I think you want (Od[1]:a) really?

-- 
Christian Neukirchen  <chneukirchen@gmail.com>  http://chneukirchen.org


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-02-14 16:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAH_OBicY5yU-qWELH1Qd6Mx=KZfKdhgnoagA_TurjXo5sCAp5w@mail.gmail.com>
     [not found] ` <20150213154138.118cf396@pwslap01u.europe.root.pri>
     [not found]   ` <20150213155212.49ed641f@pwslap01u.europe.root.pri>
     [not found]     ` <20150213211159.GB12771__23092.9831196137$1423863146$gmane$org@neroon.zhar.net>
2015-02-14 16:43       ` directory specific functions and aliases Christian Neukirchen

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).