-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinputrc
More file actions
executable file
·64 lines (46 loc) · 1.75 KB
/
inputrc
File metadata and controls
executable file
·64 lines (46 loc) · 1.75 KB
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
# Better tab-completion settings
set bell-style none
# Show all completions as soon as I press tab, even if there's more than one
set show-all-if-ambiguous on
# Cycle through completions with Tab instead of just listing them
set menu-complete-display-prefix on
# Tab/Shift+Tab to cycle through completions
TAB: menu-complete
"\e[Z": menu-complete-backward
# Ignore case when completing
set completion-ignore-case on
# Treat hyphens and underscores as equivalent when completing
set completion-map-case on
# Show all completions sorted alphabetically
set completion-display-width 0
# Color files by types
set colored-stats on
# Color the common prefix in completions
set colored-completion-prefix on
# Append a slash when completing symbolic links to directories
set mark-symlinked-directories on
# Show extra file information when completing (like ls -F)
set visible-stats on
# Skip completed text when moving through completion suggestions
set skip-completed-text on
# Be more intelligent when autocompleting (e.g. when middle of word)
set skip-completed-text on
# Use the text that has already been typed as the prefix for searching through
# commands (basically more intelligent Up/Down behavior)
"\e[A": history-search-backward
"\e[B": history-search-forward
# Use Ctrl+n/p to cycle through completions
Control-n: menu-complete
Control-p: menu-complete-backward
# Use Alt-h to show all completions (like double-tab but with one key)
"\eh": complete
# Move to beginning/end of line
"\e[7~": beginning-of-line
"\e[8~": end-of-line
"\e[H": beginning-of-line
"\e[F": end-of-line
# Alt+Left/Right to move by words
"\e[1;3D": backward-word
"\e[1;3C": forward-word
# Enable bracketed paste mode (prevents issues when pasting multi-line content)
set enable-bracketed-paste on