-
Notifications
You must be signed in to change notification settings - Fork 0
/
.inputrc
25 lines (19 loc) · 965 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
$include /etc/inputrc
# https://liquidat.wordpress.com/2008/08/20/short-tip-bash-tab-completion-with-one-tab/
# press tab only once for suggestion to come out
set show-all-if-ambiguous on
# ignore case completion
set completion-ignore-case on
# Set Control-Backspace to kill word
# https://github.com/banoris/dotfiles/issues/10
# See https://unix.stackexchange.com/questions/264791/ctrl-backspace-and-ctrl-delete-in-bash
# With this, no need to set C-BS or M-BS in ~/.blerc
# Consider capturing other key seq generated by other terminals as well? E.g., C-?, C-w, C-_, ...
# See https://github.com/akinomyoga/ble.sh/wiki/Manual-%C2%A73-Key-Binding#311-representation-of-ret-esc-tab-bs-del-and-c-bs
"\C-h": backward-kill-word
# Alt-Backspace generates `^[^?`.
"\e\C-?": backward-kill-word
# Autoclosing quotes and paren
# https://stackoverflow.com/questions/9357464/how-to-start-a-shell-without-any-user-configuration
"(": "\C-v()\e[D"
"\"": "\C-v\"\C-v\"\e[D"