Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: "Alt ." to repeat last part of a command
- X-seq: zsh-users 15019
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: "Alt ." to repeat last part of a command
- Date: Fri, 23 Apr 2010 11:27:35 +0200
- In-reply-to: <g2r8f67b6f81004230214j86a58e34r974261cb88ea1250@xxxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <g2r8f67b6f81004230214j86a58e34r974261cb88ea1250@xxxxxxxxxxxxxx>
Hi,
On 2010-04-23 09:14:24 +0000, Carlo Trimarchi wrote:
> how can I use the "Alt ." combination to repeat the last part of a
> command?
I suppose you meant "Esc ." (Alt combinations don't make sense in
a terminal, they are translated to something else, e.g. by Esc).
> When I used bash I used a lot this.
> Or, maybe, is there any other combination in zsh to do the same thing?
It should work in zsh:
ypig% bindkey '^[.'
"^[." insert-last-word
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author