From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2570 invoked by alias); 13 Oct 2011 08:28:34 -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: 16478 Received: (qmail 10414 invoked from network); 13 Oct 2011 08:28:22 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) 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, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.212.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=VNfMXC2I7Ik/4d93qvngwyOhRdfwgyt5J88IRj1ljvI=; b=X1vG70qGnp5k1j1bO1ItVZ77lVgy1CVWtSCpaNhcB3UxC/zPXYlxC/f/F/RN7YVNy1 IdgijYECDFHavepZWVv3BNTo9F/sKM3ulSHLziXdmnVMB24JrI6ZgARh4d81Sokh3IkN B8eYXuV5wPrK2rScKQ3PhVOv9Xm6VYLvxltHo= MIME-Version: 1.0 In-Reply-To: <20111013045056.GC2859@solfire> References: <20111013045056.GC2859@solfire> Date: Thu, 13 Oct 2011 10:28:16 +0200 Message-ID: Subject: Re: ...missing one bash-feature From: Mikael Magnusson To: meino.cramer@gmx.de Cc: zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 On 13 October 2011 06:50, wrote: > Hi, > > there is one feature of the bash which I miss in zsh -- may be > by not knowing it. > > Suppose in bash I do the following: > bash> ls onefile.txt twofile.txt threefile.txt > bash> rm _____ > > instead of '_____' I press instead > > ALT - 2 ALT . > > and get the 'last - 2' argument of the previous command, which is > 'onefile.txt' > > Is there a way to mimic or simulate the same behaviour in zsh or is > there a even better and even more intuitive way to do so? > > Thank you very much in advance for any help! This is in zsh by default unless you're using vi keybindings. If you're not doing that on purpose, add bindkey -e to your .zshrc. -- Mikael Magnusson