-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathinputrc
59 lines (49 loc) · 1.45 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
47
48
49
50
51
52
53
54
55
56
57
58
59
# UTF-8 support
set meta-flag on
set input-meta on
set output-meta on
set convert-meta off
set editing-mode vi
# By default up/down are bound to previous-history
# and next-history respectively. The following does the
# same but gives the extra functionality where if you
# type any text (or more accurately, if there is any text
# between the start of the line and the cursor),
# the subset of the history starting with that text
# is searched (like 4dos for e.g.).
# Note to get rid of a line just Ctrl-C
"\e[B": history-search-forward
"\e[A": history-search-backward
"\C-p": history-search-backward
"\C-n": history-search-forward
# mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
# allow the use of the Delete/Insert keys
"\e[3~": delete-char
"\e[2~": quoted-insert
"\C-a": beginning-of-line
"\C-b": backward-char
"\C-d": delete-char
"\C-e": end-of-line
"\C-f": forward-char
"\C-k": kill-line
# ignore iTerms focus notifications
# https://github.com/sjl/vitality.vim/issues/2
"\e[O": ''
"\e[I": ''
# clear the screen with ctrl-l
Control-l: clear-screen
set show-all-if-ambiguous on
set mark-symlinked-directories on
$if Bash
#do history expansion when space entered
Space: magic-space
$endif
# Include system wide settings which are ignored
# by default if one has their own .inputrc
$include /etc/inputrc