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

Re: Fw: Zsh - push current command on history without executing it



Casper Gripenberg wrote in news:477E177A.3060303@xxxxxxxxxxxxx:

> Mikael Magnusson wrote:
> > [...]
>> And I have this custom widget to help me store a command line in history
>> without executing it:
>> 
>>    commit-to-history() {
>>       print -s ${(z)BUFFER}
>>       zle send-break
>>    }
>>    zle -N commit-to-history
>>    bindkey "^X^H" commit-to-history
>> 
 
Good one,
BTW you can use this as a temporary memory for a telephone number etc etc as 
well etc.

I seem to have trouble with double letter bindkeys , or is this the old vi-
edit mode problem?


-- 
zzapper
http://www.rayninfo.co.uk/vimtips.html
http://rayninfo.co.uk/tips/zshtips.html



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