-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinputrc
83 lines (65 loc) · 1.74 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
$if mode=emacs
# The following line is actually equivalent to "\C-?": delete-char
"\e[3~": delete-char
# $if term=vt
"\e[1~": beginning-of-line
"\e[4~": end-of-line
# $endif
# $if term=kvt
"\e[H": beginning-of-line
"\e[F": end-of-line
# $endif
$if term=rxvt
"\e[7~": beginning-of-line
"\e[8~": end-of-line
$endif
$if term=konsole
"\e[7~": beginning-of-line
"\e[8~": end-of-line
$endif
$if term=vt220
"\eOH": beginning-of-line
"\eOF": end-of-line
$endif
# Allow 8-bit input/output
#
# Setting convert-meta to off stops the Alt
# key from being the Meta key. Bindings using
# Alt need to use the format \eK for Alt+K
# instead of \M-K
set meta-flag on
set convert-meta off
set input-meta on
set output-meta on
# Use visual bell
set bell-style visible
# Allow the command prompt to wrap to the next line
set horizontal-scroll-mode Off
# Only need to press Tab once for Tab completion
set show-all-if-ambiguous on
# Color the common prefix differently
set colored-completion-prefix on
# Color completions according to LS_COLORS
set colored-stats on
# Append ls -F character to Tab completion
set visible-stats on
# Do not expand homedir name
set expand-tilde off
# Tab completion on symlinked directories adds the '/'
set mark-symlinked-directories on
# 'Magic Space'
# Inputting a 'magic-space' after history expansion characters
# (e.g., !*, !!) performs the history expansion in-line
$if Bash
Space: magic-space
$endif
# Use Ctl+P/Ctl+N for incremental search
# Up/Down still work normally
"\C-P": history-search-backward
"\C-N": history-search-forward
# Set Alt+o to load previous command and
# position cursor to add an option
"\eo": "\C-p\C-a\ef "
# Make Alt+s cycle through Tab completion list
"\es": menu-complete
$endif # mode=emacs