-
Notifications
You must be signed in to change notification settings - Fork 2
/
.inputrc
46 lines (45 loc) · 1.17 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
38
39
40
41
42
43
44
45
46
set skip-completed-text on
set completion-ignore-case on
set show-mode-in-prompt on
set show-all-if-ambiguous on
set bell-style visible
set vi-ins-mode-string +
set vi-cmd-mode-string :
set editing-mode vi
$if mode=vi
set keymap vi-insert
# From http://www.ukuug.org/events/linux2003/papers/bash_tips/
# Incremental searching with Up and Down is configured in .inputrc
",b": history-search-backward
"jk": vi-movement-mode
",s": "Isudo A "
",d": "0widebug A"
",g": "A | grep "
",h": "A --help\C-m"
#",r": reverse-search-history
# Map to c-r to take advantage of fzf
",r": "\C-r"
",l": "A | less\C-m"
",s": "kA | less\C-m"
",c": "I#\C-m"
",1": "k"
",2": "kk"
",3": "kkk"
set keymap vi-command
",s": "Isudo A "
",d": "0widebug A"
",g": "A | grep "
",h": "A --help\C-m "
# From http://www.ukuug.org/events/linux2003/papers/bash_tips/
# Incremental searching with Up and Down is configured in .inputrc
",b": history-search-backward
#",r": reverse-search-history
# Map to c-r to take advantage of fzf
",r": "\C-r"
",l": "A | less\C-m"
",s": "kA | less\C-m"
",c": "I#\C-m"
",1": "k"
",2": "kk"
",3": "kkk"
$endif