.inputrc
changeset 162 3634a8ff70f5
parent 160 d45758677427
child 169 3379424b5448
equal deleted inserted replaced
161:feeb41993549 162:3634a8ff70f5
    14 set convert-meta off
    14 set convert-meta off
    15 
    15 
    16 # Display characters with the eighth bit set directly rather than as
    16 # Display characters with the eighth bit set directly rather than as
    17 # meta-prefixed characters.
    17 # meta-prefixed characters.
    18 set output-meta on
    18 set output-meta on
       
    19 
       
    20 # Terminal driver rebound some keys. See output 'stty -a'. I like original
       
    21 # control codes (to set 'C-w', etc).
       
    22 set bind-tty-special-chars off
    19 
    23 
    20 # Ignore case (on/off).
    24 # Ignore case (on/off).
    21 set completion-ignore-case on
    25 set completion-ignore-case on
    22 
    26 
    23 set completion-query-items 100
    27 set completion-query-items 100
    56 # editor, in that order.
    60 # editor, in that order.
    57 "\C-x\C-e": edit-and-execute-command
    61 "\C-x\C-e": edit-and-execute-command
    58 $endif
    62 $endif
    59 
    63 
    60 # Define my favorite Emacs key bindings.
    64 # Define my favorite Emacs key bindings.
       
    65 "\C-@": set-mark
    61 "\C-w": kill-region
    66 "\C-w": kill-region
    62 "\M-w": copy-region-as-kill
    67 "\M-w": copy-region-as-kill
       
    68 "\M-/" dabbrev-expand
    63 
    69 
    64 # Ctrl+Left/Right to move by whole words.
    70 # Ctrl+Left/Right to move by whole words.
    65 "\e[1;5C": forward-word
    71 "\e[1;5C": forward-word
    66 "\e[1;5D": backward-word
    72 "\e[1;5D": backward-word
    67 # Same with Shift pressed.
    73 # Same with Shift pressed.
    70 
    76 
    71 # Ctrl+Backspace/Delete to delete whole words.
    77 # Ctrl+Backspace/Delete to delete whole words.
    72 "\e[3;5~": kill-word
    78 "\e[3;5~": kill-word
    73 "\C-_": backward-kill-word
    79 "\C-_": backward-kill-word
    74 
    80 
       
    81 # UP/DOWN filter history by typed string as prefix.
       
    82 "\e[A": history-search-backward
       
    83 "\C-p": history-search-backward
       
    84 "\e[B": history-search-forward
       
    85 "\C-n": history-search-forward
       
    86 
    75 # Local Variables:
    87 # Local Variables:
    76 # mode: shell-script
    88 # mode: shell-script
    77 # fill-column: 78
    89 # fill-column: 78
    78 # End:
    90 # End: