-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.inputrc
41 lines (29 loc) · 1007 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
36
37
38
39
40
41
# Notes: "\e" translates to "^["
# you can test this via Ctrl+V then your commend sequence
# OSX style delete button
"\e[3~": delete-char
# Option -> / <- for forward/back word
"\e\e[C": forward-word
"\e\e[D": backward-word
"\e[1;3C": forward-word
"\e[1;3D": backward-word
"\e[1;9C": forward-word
"\e[1;9D": backward-word
# Control -> / <- beginning/end of line
"\e\e5D": beginning-of-line
"\e\e5C": end-of-line
"\e[1;5D": beginning-of-line
"\e[1;5C": end-of-line
"\e[5~": history-search-backward
"\e[6~": history-search-forward
# VIM-style ^W -- http://shallowsky.com/blog/linux/bash-word-erase.html
set bind-tty-special-chars Off
"\C-w": backward-kill-word
## Better tab completion -- http://blog.sanctum.geek.nz/lazier-tab-completion/
# Single tab complete instead of double-tab complete
set show-all-if-ambiguous on
# Ignore case when tab completing
set completion-ignore-case on
# Treat underscores and dashes as the same character
# when tab-completing
set completion-map-case on