[issue407] zsh: integrate commit-to-history into grml's zsh?

Michael Prokop bts at bts.grml.org
Wed Feb 13 21:22:38 CET 2008


New submission from Michael Prokop <mika at grml.org>:

Quoting Message-ID: 
<237967ef0801040304h494987bv939bf6ff9541123f at 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?

----------
messages: 1186
nosy: ft, mika, z3ttacht
priority: wish
status: unread
title: zsh: integrate commit-to-history into grml's zsh?
topic: configs, grml-etc-core, zsh

_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue407>
_____________________________________



More information about the Bugs-changes mailing list