-
Notifications
You must be signed in to change notification settings - Fork 1
/
.inputrc
35 lines (27 loc) · 869 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
34
35
# case insensitive tab completion
set completion-ignore-case On
# show all available completions
set show-all-if-ambiguous on
set menu-complete-display-prefix on
set mark-symlinked-directories on
# vim mode in bash
# set show-mode-in-prompt on
# set vi-ins-mode-string ""
# set vi-cmd-mode-string ""
# Useful key bindings
Control-l: clear-screen
# Open file with nvim
Control-v: "v \C-t"
# Backspacing until slash or whitespace
Control-f: unix-filename-rubout
# Alt-Left and Alt-Right go backward and forward by word in bash prompt
"\e[1;3D": backward-word
"\e[1;3C": forward-word
# Alt-h and Alt-l go backward and forward by word in bash prompt
"\eh": backward-word
"\el": forward-word
# Alt-j and Alt-k go backward and forward in history
"\ek":history-search-backward
"\ej":history-search-forward
"\e[A":history-search-backward
"\e[B":history-search-forward