From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16328 invoked by alias); 4 Nov 2014 16:04:19 -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: 19343 Received: (qmail 6614 invoked from network); 4 Nov 2014 16:04:17 -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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Date: Tue, 4 Nov 2014 16:57:58 +0100 From: Vincent Lefevre To: zsh-users@zsh.org Subject: Re: Multi-word aliases? Message-ID: <20141104155758.GA16548@ioooi.vinc17.net> Mail-Followup-To: zsh-users@zsh.org 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> <20141104123941.3498fea4@pwslap01u.europe.root.pri> <20141104125337.GA23502@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20141104125337.GA23502@linux.vnet.ibm.com> X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.23-6365-vl-r59709 (2014-09-07) On 2014-11-04 13:53:37 +0100, Dominik Vogt wrote: > On Tue, 04 Nov 2014 13:32:08 +0100 > Mikael Magnusson wrote: > > 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 :). I agree. > Actually, most of the time when I miss something like that in zsh, > it turns out that once the shell history contains only invocations > of "git rebase" including "--keep-empty" the problem goes away > almost automatically. That is because I'm way too lazy to type > long commands and instead use history search all the time, usually > after the first or the second letter. :-) Then I suggest: alias gr='git rebase --keep-empty' and if this isn't clear for other people, make zsh output the alias expansion before running the command. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)