about summary refs log tree commit diff stats
path: root/readline
diff options
context:
space:
mode:
authorCase Duckworth2023-01-30 12:24:30 -0600
committerCase Duckworth2023-01-30 12:24:30 -0600
commit0a8f66eead3db6b84247c23fba4ff74d11f93fcf (patch)
treec0b739ff696e081cde6eb8ffeff9dad829afb3c9 /readline
parentProfile! (diff)
downloadetc-0a8f66eead3db6b84247c23fba4ff74d11f93fcf.tar.gz
etc-0a8f66eead3db6b84247c23fba4ff74d11f93fcf.zip
Inputrc!
Diffstat (limited to 'readline')
-rw-r--r--readline/inputrc35
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
16set expand-tilde on
9 17
10# Show completions using LS_COLORS 18# Show completions using LS_COLORS
11set colored-stats Off 19set colored-stats on
20set colored-completion-prefix on
21
12# Ignore case in completions 22# Ignore case in completions
13set completion-ignore-case On 23set 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
15set completion-prefix-display-length 3 26set completion-prefix-display-length 3
27
16# Show symlinked directories with a slash 28# Show symlinked directories with a slash
17set mark-symlinked-directories On 29set mark-symlinked-directories On
30
18# Show completions immediately 31# Show completions immediately
19set show-all-if-ambiguous On 32set show-all-if-ambiguous On
20set show-all-if-unmodified On 33set show-all-if-unmodified On
34
21# Show types (like ls -F) 35# Show types (like ls -F)
22set visible-stats On 36set visible-stats On
37
23# Better pasting 38# Better pasting
24set enable-bracketed-paste on 39set enable-bracketed-paste on
40
25# Blink parens 41# Blink parens
26set blink-matching-paren on 42set 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