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

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



On 23 April 2010 09:27, Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
>
> I suppose you meant "Esc ." (Alt combinations don't make sense in
> a terminal, they are translated to something else, e.g. by Esc).

No, I meant "Alt ."

In bash, at the moment, I can do this:

$ ls workspace/

then I can press "cd Alt ." to show the command "cd workspace/"

In zsh it seems that "Alt ." executes "cd .." and it brings me to the
parent directory.

> It should work in zsh:
>
> ypig% bindkey '^[.'
> "^[." insert-last-word



Thanks, I'll try



Messages sorted by: Reverse Date, Date, Thread, Author