-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathinputrc
67 lines (64 loc) · 2.29 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
# Bindings, invoke 'bind -p' for full listing:
#
# - Ctrl-Right / Alt-f: move forward a word
# - Ctrl-Left / Alt-b: move backward a word
# - Shift-Left: move forward a BIG word
# - Shift-Right: move backward a BIG word
# - Alt-d: delete forward word
# - Alt-<backspace>: delete backward word
# - Ctrl-u: kill line
# - Alt-u: undo last edit
# - Alt-e: edit the current command in $EDITOR and execute
# - Alt-.: append last parameter from previous command
# - Ctrl-a/HOME/fn-left: go to start of line
# - Ctrl-e/END/fn-right: go to end of line
# - Ctrl-r: reverse history search
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[1;2D": vi-backward-bigword
"\e[1;2C": vi-forward-bigword
"\eD": "\eF\C-w"
"\eu": undo
"\ee": edit-and-execute-command
# TAB cycles forward through completion choices. Press an arrow key to choose a
# selection.
TAB: menu-complete
# Shift-TAB cycles backward through completion choices. Press an arrow key to
# choose a selection.
"\e[Z": menu-complete-backward
# Substring history search using UP and DOWN arrow keys.
$if bash
"\e[A": history-substring-search-backward
"\e[B": history-substring-search-forward
$endif
# Readline behaviors. Refer to 'man bash' / "Readline Variables" section.
#
# Enable completion coloring.
set colored-completion-prefix on
set colored-stats on
# Ignore case when completing.
set completion-ignore-case on
# Treat hypen and underscores as equivalent.
set completion-map-case on
# The number of completions to display without prompt; when exceeded a
# prompt-to-display will appear.
set completion-query-items 200
# Automatically add slash to the end of symlinked directories when completing.
set mark-symlinked-directories on
# Don't automatically match files beginning with dot.
set match-hidden-files off
# Display the common prefix choices on the first completion then cycle the
# available choices on the next completion.
set menu-complete-display-prefix on
# Turn off the completions pager.
set page-completions off
# Immediately display completion matches.
set show-all-if-ambiguous on
# Smartly complete items when the cursor is not at the end of the line.
set skip-completed-text on
# Keep terminal quiet and clean.
set bell-style none
set echo-control-characters off
# Disable Bash 5.1 highlighted paste feature.
# See: https://is.gd/fsgOMe
set enable-bracketed-paste off