forked from booch/config_files
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinputrc
61 lines (45 loc) · 1.7 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
60
61
### Settings for GNU readline library (text input), primarily for Bash shell.
## Include system-wide settings.
$include /etc/inputrc
## Various settings.
# Make sure Readline always starts in Emacs mode.
set editing-mode emacs
# Use a single line for readline input, scrolling input horizontally on a single line when it gets longer than screen width.
# NOTE: Seems to have problems on PuTTY.
#set horizontal-scroll-mode on
# Flash the screen instead of sounding a bell.
set bell-style visible
# Ignore case when doing tab completion.
set completion-ignore-case on
# Don't expand tilde to home directory when doing word completion.
set expand-tilde off
# Append a slash (/) to completed directory names, including symlinks to directories.
set mark-directories on
set mark-symlinked-directories on
# Words which have more than one possible completion cause matches to be listed immediately instead of ringing the bell.
set show-all-if-ambiguous on
set show-all-if-unmodified on
# Blink to show matching parentheses.
set blink-matching-paren on
# Expand out any ! commands on the line when hitting space (only for bash).
$if Bash
Space: magic-space
$endif
# If we've already typed something, up should search for that (as a prefix) in our history. (From http://www.ukuug.org/events/linux2003/papers/bash_tips/#S12)
$if Bash
"\e[A": history-search-backward
"\e[B": history-search-forward
$endif
## Extra key-bindings for various terminal types.
"\eOH": beginning-of-line
"\eOF": end-of-line
"\e[H": beginning-of-line
"\e[F": end-of-line
"\e[1~": beginning-of-line
"\e[2~": quoted-insert
"\e[3~": delete-char
"\e[4~": end-of-line
"\e[5~": previous-history
"\e[6~": next-history
"\e[7~": beginning-of-line
"\e[8~": end-of-line