-
Notifications
You must be signed in to change notification settings - Fork 4
/
.inputrc
38 lines (30 loc) · 1.05 KB
/
.inputrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
set bell-style none
# Use vi, not Emacs, style editing
set editing-mode vi
# Ignore case
set completion-ignore-case on
# on menu-complete, first display the common prefix, then cycle through options
# when pressing tab
set keymap vi-command
"gg": beginning-of-history
"G": end-of-history
# Keymaps for when in insert mode
set keymap vi-insert
"\C-w": backward-kill-word
"\C-p": history-search-backward
# Shift-TAB cycles completions backward
#"\e]Z": menu-complete-backward - doesn't work; shift+tab sends esc
#"\e[Z": "\e-1\C-i"
"jk": vi-movement-mode
# Pressing tab lists all completions and selects the first one.
# Pressing it again will cycle through all available completions.
TAB: menu-complete
# Show all completions as soon as I press tab, even if there's more than one
set show-all-if-ambiguous on
# This is only in bash 4.4
set show-mode-in-prompt on
set vi-ins-mode-string \1\e[34;1m\2(ins)\1\e[0m\2
set vi-cmd-mode-string \1\e[35;1m\2(cmd)\1\e[0m\2
# incremental search with arrow keys
"\e[A": history-search-backward
"\e[B": history-search-forward