diff options
Diffstat (limited to 'readline')
-rw-r--r-- | readline/inputrc | 35 |
1 files changed, 30 insertions, 5 deletions
diff --git a/readline/inputrc b/readline/inputrc index 20f3251..bc113e6 100644 --- a/readline/inputrc +++ b/readline/inputrc | |||
@@ -1,26 +1,51 @@ | |||
1 | # inputrc | 1 | # inputrc -*- conf -*- |
2 | |||
3 | ## Info: | ||
4 | # https://www.masteringemacs.org/article/keyboard-shortcuts-every-command-line-hacker-should-know-about-gnu-readline | ||
5 | # https://ss64.com/bash/syntax-inputrc.html | ||
2 | 6 | ||
3 | # Include the system inputrc | 7 | # Include the system inputrc |
4 | $include /etc/inputrc | 8 | $include /etc/inputrc |
5 | 9 | ||
6 | # Search based on what I've already typed | 10 | # Emacs shell-like history navigation |
7 | "\C-p":history-search-backward | 11 | "\ep": history-search-backward |
8 | "\C-n":history-search-forward | 12 | "\en": history-search-forward |
13 | |||
14 | ### Global settings | ||
15 | |||
16 | set expand-tilde on | ||
9 | 17 | ||
10 | # Show completions using LS_COLORS | 18 | # Show completions using LS_COLORS |
11 | set colored-stats Off | 19 | set colored-stats on |
20 | set colored-completion-prefix on | ||
21 | |||
12 | # Ignore case in completions | 22 | # Ignore case in completions |
13 | set completion-ignore-case On | 23 | set completion-ignore-case On |
24 | |||
14 | # Show ... if common prefix is longer than 3 characters | 25 | # Show ... if common prefix is longer than 3 characters |
15 | set completion-prefix-display-length 3 | 26 | set completion-prefix-display-length 3 |
27 | |||
16 | # Show symlinked directories with a slash | 28 | # Show symlinked directories with a slash |
17 | set mark-symlinked-directories On | 29 | set mark-symlinked-directories On |
30 | |||
18 | # Show completions immediately | 31 | # Show completions immediately |
19 | set show-all-if-ambiguous On | 32 | set show-all-if-ambiguous On |
20 | set show-all-if-unmodified On | 33 | set show-all-if-unmodified On |
34 | |||
21 | # Show types (like ls -F) | 35 | # Show types (like ls -F) |
22 | set visible-stats On | 36 | set visible-stats On |
37 | |||
23 | # Better pasting | 38 | # Better pasting |
24 | set enable-bracketed-paste on | 39 | set enable-bracketed-paste on |
40 | |||
25 | # Blink parens | 41 | # Blink parens |
26 | set blink-matching-paren on | 42 | set blink-matching-paren on |
43 | |||
44 | ### Bash | ||
45 | |||
46 | $if Bash | ||
47 | # Wrap the command line in $( ... ) | ||
48 | "\C-xq": "\C-a$(\C-e)" | ||
49 | # C-M-o : dabbrev-expand | ||
50 | "\e\C-o": dabbrev-expand | ||
51 | $endif \ No newline at end of file | ||