about summary refs log tree commit diff stats
path: root/readline/inputrc
blob: bc113e663a20380a3cefcd7d3002def74f918022 (plain)
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
# inputrc -*- conf -*-

## Info:
# https://www.masteringemacs.org/article/keyboard-shortcuts-every-command-line-hacker-should-know-about-gnu-readline
# https://ss64.com/bash/syntax-inputrc.html

# Include the system inputrc
$include /etc/inputrc

# Emacs shell-like history navigation
"\ep": history-search-backward
"\en": history-search-forward

### Global settings

set expand-tilde on

# Show completions using LS_COLORS
set colored-stats on
set colored-completion-prefix on

# Ignore case in completions
set completion-ignore-case On

# Show ... if common prefix is longer than 3 characters
set completion-prefix-display-length 3

# Show symlinked directories with a slash
set mark-symlinked-directories On

# Show completions immediately
set show-all-if-ambiguous On
set show-all-if-unmodified On

# Show types (like ls -F)
set visible-stats On

# Better pasting
set enable-bracketed-paste on

# Blink parens
set blink-matching-paren on

### Bash

$if Bash
# Wrap the command line in $( ... )
"\C-xq": "\C-a$(\C-e)"
# C-M-o : dabbrev-expand
"\e\C-o": dabbrev-expand
$endif