-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.inputrc
More file actions
37 lines (27 loc) · 860 Bytes
/
.inputrc
File metadata and controls
37 lines (27 loc) · 860 Bytes
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
# turn off system beep
set bell-style none
# like ls -F for completion
set visible-stats on
tab: complete
# use vi for everything! :)
set editing-mode vi
# map alt-backspace to kill previous word
"\e\177": shell-backward-kill-word
$if mode=vi
# update the cursor based on vi mode
set show-mode-in-prompt on
set vi-cmd-mode-string "\1\e[2 q\2"
set vi-ins-mode-string "\1\e[6 q\2"
# this block adds mappings for vi-command mode
set keymap vi-command
# these search the history using the text before the cursor
"\e[A": history-search-backward
"\e[B": history-search-forward
# this block adds mappings for vi-insert mode
set keymap vi-insert
# these search the history using the text before the cursor
"\e[A": history-search-backward
"\e[B": history-search-forward
$endif
# include another inputrc file
#$include /etc/inputrc