Add support to confirm the execution of a binding #52

Closed
wants to merge 1 commit into from
Commits on May 11, 2012
  1. @vivien

    Add support to confirm the execution of a binding

    vivien committed May 10, 2012
    * User-defined commands prefix with a '?' will be prompted for
      confirmation before being executed. This can be useful for sensible
      commands such as `git revert`, etc.
    * By the way, the built-in 'G' binding for `git gc`, and 'C' binding for
      `git cherry-pick` now need confirmation.
    
    Examples of bindings:
    
        # Ask before rebasing
        bind main B !?git rebase -i %(commit)
        # Ask before cleaning but do not display output
        bind generic ! !@?git clean -fdx
    
    Signed-off-by: Vivien Didelot <vivien@didelot.org>