From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15323 invoked by alias); 4 Nov 2014 13:03:49 -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: 19342 Received: (qmail 6687 invoked from network); 4 Nov 2014 13:03:46 -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=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.2 Date: Tue, 4 Nov 2014 13:53:37 +0100 From: Dominik Vogt To: zsh-users@zsh.org Subject: Re: Multi-word aliases? Message-ID: <20141104125337.GA23502@linux.vnet.ibm.com> Reply-To: vogt@linux.vnet.ibm.com 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141104123941.3498fea4@pwslap01u.europe.root.pri> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14110412-0009-0000-0000-000001D82EF8 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 :). 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. :-) I don't have a lot of this stuff, but some aliases are useful and harmless: alias gdb='gdb -q' alias ll='ls -l' alias ls='/bin/ls --color -F -N -T 0 --dereference-command-line-symlink-to-dir alias pstree='pstree -A' alias ncal='ncal -M' Ciao Dominik ^_^ ^_^ -- Dominik Vogt IBM Germany