-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.inputrc
108 lines (88 loc) · 4.46 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# Controls what happens when readline wants to ring the terminal bell.
# If set to none, readline never rings the bell. If set to visible,
# readline uses a visible bell if one is available. If set to
# audible, readline attempts to ring the terminal's bell.
set bell-style audible
# Menu completion displays the common prefix of the list of possible
# completions (which may be empty) before cycling through the list.
set menu-complete-display-prefix on
# This alters the default behavior of the completion functions.
# If set to On, words which have more than one possible completion
# cause the matches to be listed immediately instead of ringing the bell.
set show-all-if-ambiguous on
# This alters the default behavior of the completion functions
# in a fashion similar to show-all-if-ambiguous. If set to On,
# words which have more than one possible completion without any
# possible partial completion (the possible completions don't
# share a common prefix) cause the matches to be listed immediately
# instead of ringing the bell.
set show-all-if-unmodified on
# Perform filename matching and completion in a case-insensitive fashion.
set completion-ignore-case on
# This determines when the user is queried about viewing the number of
# possible completions generated by the possible-completions command.
# It may be set to any integer value greater than or equal to zero.
# If the number of possible completions is greater than or equal to
# the value of this variable, readline will ask whether or not the
# user wishes to view them; otherwise they are simply listed on the
# terminal. A negative value causes readline to never ask.
set completion-query-items 200
# Cause readline to match files whose names begin with a '.' (hidden files)
# when performing filename completion. If set to Off, the leading '.' must
# be supplied by the user in the filename to be completed.
set match-hidden-files on
# Character denoting a file's type as reported by stat(2) is appended
# to the filename when listing possible completions.
set visible-stats on
# Treat hyphens (-) and underscores (_) as equivalent when
# performing filename matching and completion.
set completion-map-case on
# This alters the default completion behavior when inserting
# a single match into the line. It's only active when performing
# completion in the middle of a word. If enabled, readline does
# not insert characters from the completion that match characters
# after point in the word being completed, so portions of the word
# following the cursor are not duplicated.
set skip-completed-text on
# Display possible completions using different colors to indicate
# their file type. The color definitions are taken from the value
# of the LS_COLORS environment variable.
set colored-stats on
# When listing completions, readline displays the common prefix
# of the set of possible completions using a different color.
# The color definitions are taken from the value of the
# LS_COLORS environment variable.
set colored-completion-prefix on
# Completed directory names have a slash appended.
set mark-directories on
# Completed names which are symbolic links to directories have
# a slash appended (subject to the value of mark-directories).
set mark-symlinked-directories on
# Readline will enable eight-bit input (that is, it will not
# clear the eighth bit in the characters it reads), regardless
# of what the terminal claims it can support. The name meta-flag
# is a synonym for this variable. The default is Off, but readline
# will set it to On if the locale contains eight-bit characters.
set input-meta on
# Readline will display characters with the eighth bit set directly
# rather than as a meta-prefixed escape sequence. The default is Off,
# but readline will set it to On if the locale contains eight-bit
# characters.
set output-meta on
# Do not convert characters with the eighth bit set to an
# ASCII key sequence by stripping the eighth bit and prefixing
# it with an escape character (in effect, using escape as the
# meta prefix). The default is On, but readline will set it to
# Off if the locale contains eight-bit characters.
set convert-meta off
# Use the text that has already been typed as the prefix for
# searching through commands.
"\e[B": history-search-forward
"\e[A": history-search-backward
# Ctrl + f to forward search history.
"\C-f": forward-search-history
# Use Alt + Delete to delete the next word.
"\e[3;3~": kill-word
# Start cycling through all the matches if the word is ambiguous
# or unmodified.
TAB: menu-complete