diff options
Diffstat (limited to 'readline/.inputrc')
-rw-r--r-- | readline/.inputrc | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/readline/.inputrc b/readline/.inputrc new file mode 100644 index 0000000..d789713 --- /dev/null +++ b/readline/.inputrc @@ -0,0 +1,65 @@ +$include /etc/inputrc + +set bell-style visible +set bind-tty-special-chars off +set blink-matching-paren on +set colored-completion-prefix on +set colored-stats on +set completion-ignore-case on +set convert-meta off +set echo-control-characters off +set editing-mode vi +set input-meta on +set mark-symlinked-directories on +set match-hidden-files off +set menu-complete-display-prefix on +set meta-flag on +set output-meta on +set page-completions on +set show-all-if-ambiguous on +set show-all-if-unmodified on +set show-mode-in-prompt on +set visible-stats on + +$if mode=emacs + "\e[1~": beginning-of-line + "\e[4~": end-of-line + "\e[5C": forward-word + "\e[5D": backward-word + "\e[3~": delete-char + "\e[5~": history-search-backward + "\e[6~": history-search-forward + "\t": menu-complete +$endif + +$if mode=vi + set keymap vi-command + "^": beginning-of-line + "$": end-of-line + "w": forward-word + "b": backward-word + "x": delete-char + "k": history-search-backward + "j": history-search-forward + "?": reverse-search-history + "/": forward-search-history + "gg": beginning-of-history + "G": end-of-history + + set keymap vi-insert + "\C-l": clear-screen + "\C-w": backward-kill-word + "\C-a": beginning-of-line + "\C-e": end-of-line + "\C-p": history-search-backward + "\C-n": history-search-forward + "\t": menu-complete +$endif + +$if term=linux + set vi-ins-mode-string \1\e[?0c\2 + set vi-cmd-mode-string \1\e[?8c\2 +$else + set vi-ins-mode-string \1\e[6 q\2 + set vi-cmd-mode-string \1\e[2 q\2 +$endif |