.inputrc
changeset 1022 17e43eca7401
parent 1021 011e1d002d17
child 1023 15f1cfa23949
equal deleted inserted replaced
1021:011e1d002d17 1022:17e43eca7401
    72 $if Bash
    72 $if Bash
    73 # Invoke an editor on the current command line, and execute the result as
    73 # Invoke an editor on the current command line, and execute the result as
    74 # shell commands. Bash attempts to invoke $FCEDIT, $EDITOR, and emacs as the
    74 # shell commands. Bash attempts to invoke $FCEDIT, $EDITOR, and emacs as the
    75 # editor, in that order.
    75 # editor, in that order.
    76 "\C-x\C-e": edit-and-execute-command
    76 "\C-x\C-e": edit-and-execute-command
       
    77 # magic-space expand sequence referring to the command history in place, so you have a chance to review before executing.
    77 Space: magic-space
    78 Space: magic-space
    78 $endif
    79 $endif
    79 
    80 
    80 # Define my favorite Emacs key bindings.
    81 # Define my favorite Emacs key bindings.
    81 "\C-@": set-mark
    82 "\C-@": set-mark
    85 
    86 
    86 # Below paragraph are default settings.
    87 # Below paragraph are default settings.
    87 "\C-_": undo
    88 "\C-_": undo
    88 "\C-]": character-search
    89 "\C-]": character-search
    89 "\e\C-]": character-search-backward
    90 "\e\C-]": character-search-backward
       
    91 "\er": revert-line
    90 
    92 
    91 # Ctrl+Left/Right to move by whole words. XTerm/Mintty.
    93 # Ctrl+Left/Right to move by whole words. XTerm/Mintty.
    92 "\e[1;5C": forward-word
    94 "\e[1;5C": forward-word
    93 "\e[1;5D": backward-word
    95 "\e[1;5D": backward-word
    94 # Same with Shift pressed.
    96 # Same with Shift pressed.