-
Notifications
You must be signed in to change notification settings - Fork 0
/
inputrc
43 lines (30 loc) · 927 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
42
43
# ~/.inputrc
#
# https://www.gnu.org/software/bash/manual/html_node/Readline-Init-File.html
#
# bind -V # for 'set' options
# bind -p # for keys
set completion-ignore-case on
set expand-tilde off
set match-hidden-files off
set mark-symlinked-directories on
# colored tab completion
set colored-stats on
set bell-style none
# -------------------------------------------------------------------
# Map arrow keys and <delete> key
"\e[1;3D": backward-word
"\e[1;3C": forward-word
"\e\b": backward-kill-word
"\e\e[D": backward-word
"\e\e[C": forward-word
"\eOD": backward-char
"\eOC": forward-char
"\C-h": unix-filename-rubout
# Move forward to start of next word with space before
"\C-f": "\C-]\ \eOC"
# Move backward to start of previous word with space before
"\C-b": "\eOD\e\C-]\ \eOC"
# Delete word before (seperated by whitespace)
"\C-j": "\eOC\C-]\ \eOC\C-w"
"\C-z": undo