Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ...missing one bash-feature
- X-seq: zsh-users 16478
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: meino.cramer@xxxxxx
- Subject: Re: ...missing one bash-feature
- Date: Thu, 13 Oct 2011 10:28:16 +0200
- Cc: zsh-users@xxxxxxx
- 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=
- In-reply-to: <20111013045056.GC2859@solfire>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20111013045056.GC2859@solfire>
On 13 October 2011 06:50, <meino.cramer@xxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author