From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2079 invoked by alias); 4 Nov 2014 12:32:11 -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: 19340 Received: (qmail 29736 invoked from network); 4 Nov 2014 12:32:10 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=gICk/7SGriYwrmwp0aSXLzRWXb77zhlZdeViSHJtZe4=; b=qYf58RQeGcJH/K0JNwH70vyy42Fqe35eR7bGBHqYQvtf/n7bSTGE2bKQD0YrFwzuPv sPNmLjTqSY27aXQVA9TFsw+Xd1hxHU3M7yMkJ+CUc8jvy0q4pT/jbdifqI7te32PKYAU 0D2gDu1TzuR20VgmeuHA51c5uH1B/36HtNmj2Fl+KysnryEtL1YR3gBK+rmChVVNg82C L28nKUcyZQf2TjyNX1VtDeGNCYaRKNV3DQkxgi4YlXyVaid81JQt7ZbTe4qx1VjhJKRF Cene9q1wC3PVQcLb6/VP/ZtvRuT8329tnEmPnrl292P95o+N6ES/N9ArRg+VsQTLbf9b SGvQ== MIME-Version: 1.0 X-Received: by 10.107.128.106 with SMTP id b103mr54677799iod.42.1415104328806; Tue, 04 Nov 2014 04:32:08 -0800 (PST) In-Reply-To: <20141104113305.GA13232@linux.vnet.ibm.com> References: <20141104090838.GA27526@linux.vnet.ibm.com> <20141104095650.3f198112@pwslap01u.europe.root.pri> <20141104104339.GA6255@linux.vnet.ibm.com> <20141104113305.GA13232@linux.vnet.ibm.com> Date: Tue, 4 Nov 2014 13:32:08 +0100 Message-ID: Subject: Re: Multi-word aliases? From: Mikael Magnusson To: vogt@linux.vnet.ibm.com, Zsh Users Content-Type: text/plain; charset=UTF-8 On Tue, Nov 4, 2014 at 12:33 PM, Dominik Vogt wrote: > On Tue, Nov 04, 2014 at 11:59:09AM +0100, Mikael Magnusson wrote: >> On Tue, Nov 4, 2014 at 11:43 AM, Dominik Vogt wrote: >> > According to the man page, you can only define new aliases, not >> > overwrite subcommands. >> > >> > $ man git-config >> > ... >> > To avoid confusion and troubles with script usage, aliases that >> > hide existing git commands are ignored. >> >> Is there a strong reason you don't want to write "git rk" or whatever >> at the command line? > > Yes: I don't want to create my own syntax that nobody understands > but me and then be unable to work on a plain system without silly > "custom" configuration. I tried it but found the mechanism > awkward and confusing - and the colleagues did not understand what > I was doing. I think in the long run you'll run into more trouble if you expect the behaviour of commands that do something to be different than it is, than if you type a command that doesn't exist which then makes you realize you have to type out the full command. But in this particular case the resulting difference isn't very life-threatening :). -- Mikael Magnusson