.inputrc
changeset 1014 8a5b395a94f7
parent 911 626904acdc85
child 1015 64055295c18c
equal deleted inserted replaced
1013:781084ef85ce 1014:8a5b395a94f7
     1 # Settings for readline.
     1 # Settings for readline.
     2 #
     2 #
     3 # Tips:
     3 # Tips:
     4 #   C-x C-r  re-read ~/.inputrc
     4 # * Re-read ~/.inputrc: C-x C-r
       
     5 # * Dump PTY codes on a key release: showkey -a
     5 
     6 
     6 # I like this!
     7 # I like this!
     7 set editing-mode emacs
     8 set editing-mode emacs
     8 
     9 
     9 # Don't strip characters to 7 bits when reading.
    10 # Don't strip characters to 7 bits when reading.
    79 # Define my favorite Emacs key bindings.
    80 # Define my favorite Emacs key bindings.
    80 "\C-@": set-mark
    81 "\C-@": set-mark
    81 "\C-w": kill-region
    82 "\C-w": kill-region
    82 "\M-w": copy-region-as-kill
    83 "\M-w": copy-region-as-kill
    83 
    84 
    84 # Ctrl+Left/Right to move by whole words.
    85 # Ctrl+Left/Right to move by whole words. XTerm/Mintty.
    85 "\e[1;5C": forward-word
    86 "\e[1;5C": forward-word
    86 "\e[1;5D": backward-word
    87 "\e[1;5D": backward-word
    87 # Same with Shift pressed.
    88 # Same with Shift pressed.
    88 "\e[1;6C": forward-word
    89 "\e[1;6C": forward-word
    89 "\e[1;6D": backward-word
    90 "\e[1;6D": backward-word
       
    91 # Same but in Putty.
       
    92 "\eOC": forward-word
       
    93 "\eOD": backward-word
    90 
    94 
    91 # Ctrl+Backspace/Delete to delete whole words.
    95 # Ctrl+Backspace/Delete to delete whole words. XTerm/Mintty.
    92 "\e[3;5~": kill-word
    96 "\e[3;5~": kill-word
    93 "\C-_": backward-kill-word
    97 "\C-_": backward-kill-word
       
    98 # Alt+DEL delete word forward. Putty.
       
    99 "\e\e[3~": kill-word
       
   100 # Alt+DEL delete word forward. XTerm, Mintty.
       
   101 "\e[3;3~": kill-word
       
   102 # Alt+BACKSPACE delete word backward. Putty.
       
   103 "\e\d": backward-kill-word
    94 
   104 
    95 # UP/DOWN filter history by typed string as prefix.
   105 # UP/DOWN filter history by typed string as prefix.
    96 "\e[A": history-search-backward
   106 "\e[A": history-search-backward
    97 "\C-p": history-search-backward
   107 "\C-p": history-search-backward
    98 "\eOA": history-search-backward
   108 "\eOA": history-search-backward