From: Will Palmer Date: Thu, 06 May 2010 06:26:40 GMT Subject: Re: [PATCH v2] An alias that starts with "!!" runs in the current directory. Message-ID: <1273127200.3562.10.camel@dreddbeard> In-Reply-To: <7vpr19j4ng.fsf@alter.siamese.dyndns.org> On Wed, 2010-05-05 at 16:43 -0700, Junio C Hamano wrote: > What other variants might we want to be able to specify while defining and > using aliases? If cwd vs root is the only distinction, then !(cwd) would > be a bit overkill, but if we used !! for this new feature, I suspect that > it would make it much harder to switch the default in the future. > > Comments? > > What I had in mind when I mentioned !(...) were some half-formed ideas about shortcuts for manipulating the environment, !(nopager), for example. But these ideas were vague and I can't think of any off-hand which I would use other than !(cwd). I'd say !(root:path/to/dir), but that's obviously not necessary (any more than !(root) would be, if cwd were the default), and honestly I'm quite happy using shell functions for that sort of thing. -- -- Will