BTS

Message1186

Author mika
Recipients ft, mika, z3ttacht
Date 2008-02-13.20:22:37
Content
Quoting Message-ID: 
<237967ef0801040304h494987bv939bf6ff9541123f@mail.gmail.com> from zsh-user-ML:

#######################################################################
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

So, I type a command, hit Ctrl-X Ctrl-H, and then retrieve my command
from history when I need it.
#######################################################################

What do you think about that?
History
Date User Action Args
2008-02-13 20:22:38mikasetrecipients: + mika, ft, z3ttacht
2008-02-13 20:22:38mikasetmessageid: <1202934158.3.0.154585881748.issue407@bts.grml.org>
2008-02-13 20:22:38mikalinkissue407 messages
2008-02-13 20:22:37mikacreate