Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: "Alt ." to repeat last part of a command



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