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

Re: How to kill string but leave it in history?



Andrej Borsenkow wrote:
> So - is there any way to cancel current command line but leave it in
> history?

how about

bindkey -s "^X^H" "^['^A print -s ^M"       

works best with histignorespace set.

-- 
Peter Stephenson <pws@xxxxxx>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77413
Deutsches Elektronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.



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