-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathinputrc
28 lines (25 loc) · 805 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
set show-all-if-ambiguous on
set completion-ignore-case on
# http://www.reddit.com/r/commandline/comments/kbeoe/you_can_make_readline_and_bash_much_more_user/
Control-j: menu-complete
Control-k: menu-complete-backward
# Map modifiers (xterm defaults)
#
# Figure out the code in Vim:
# * go into insert mode:
# * type ctrl+v
# * type the shortcut
#
# opt+left, opt+right outside tmux
"\e[1;9D": backward-word
"\e[1;9C": forward-word
# opt+left, opt+right in tmux
"\e[1;3D": backward-word
"\e[1;3C": forward-word
# shift+left, shift+right
"\e[1;2D": backward-word
"\e[1;2C": forward-word
# https://coderwall.com/p/oqtj8w/the-single-most-useful-thing-in-bash
# E.g. type "cd" and hit up arrow to search through history for that prefix.
"\e[A": history-search-backward
"\e[B": history-search-forward