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

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



On 25 April 2010 14:09, Carlo Trimarchi <mr.spoon21@xxxxxxxxx> wrote:
> On 23 April 2010 19:48, Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> wrote:
>>
>> so this bit of my previous message is what you need...
>>
>> Unless you're in vi mode, in which case you can just bind it in the obvious
>> way.
>>
>> bindkey -M viins '\e.' insert-last-word
>
> I see, thanks. I think I have to read something about this in the documentation.

Unless you particularly want to use vi mode, you probably just want to
put "bindkey -e" early in your .zshrc (early meaning before other
bindkey commands).

-- 
Mikael Magnusson



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