Re: [PATCH v2] An alias that starts with "!!" runs in the current directory.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]