-
Notifications
You must be signed in to change notification settings - Fork 2
/
.inputrc
33 lines (27 loc) · 880 Bytes
/
.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
$if Bash
set editing-mode vi
$endif
$if mode=vi
set show-mode-in-prompt on
set vi-cmd-mode-string \1\e[37m\2*\1\e[0m\2
set vi-ins-mode-string \1\e[37m\2❯\1\e[0m\2
set keymap vi-command
# these are for vi-command mode
Control-l: clear-screen
Control-a: beginning-of-line
Control-e: end-of-line
#prevent bash to open $EDITOR, switch to insert mode instead
#v: vi-insertion-mode
set keymap vi-insert
# these are for vi-insert mode
Control-l: clear-screen
Control-a: beginning-of-line
Control-e: end-of-line
# Pressing tab will list all completions & select the first one. Pressing it
# again will cycle through available completions.
#TAB: menu-complete
# Shift-TAB cycles completions backward
"\e[Z": menu-complete-backward
$endif
set show-all-if-ambiguous on
set completion-ignore-case on