-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinputrc
More file actions
75 lines (65 loc) · 2.01 KB
/
inputrc
File metadata and controls
75 lines (65 loc) · 2.01 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
65
66
67
68
69
70
71
72
73
74
75
# ~/.inputrc: readline initialization file.
#
# Check "bind -P" for all keybindings
#
# vim:ts=8:sts=4:sw=4:et
# Preserve distro defaults
$include /etc/inputrc
# Allow 8-bit input/output
set meta-flag on
set convert-meta off
set input-meta on
set output-meta on
# Show matching parentesis, brackets etc
set blink-matching-paren on
# Some systems need this to enable the arrow keys
#set enable-keypad on
# Set cursor style (DECSCUSR), VT520.
# \1\e[0 q\2 -> blinking block.
# \1\e[1 q\2 -> blinking block (default).
# \1\e[2 q\2 -> steady block.
# \1\e[3 q\2 -> blinking underline.
# \1\e[4 q\2 -> steady underline.
# \1\e[5 q\2 -> blinking bar, xterm.
# \1\e[6 q\2 -> steady bar, xterm.
#set show-mode-in-prompt on
#set emacs-mode-string \1\e[5 q\2
#set vi-ins-mode-string \1\e[6 q\2
#set vi-cmd-mode-string \1\e[1 q\2
$if Bash
# Insert a space in the end of line a history expansion
Space: magic-space
# Disable terminal beeps
set bell-style none
# Filename completion/expansion
#set completion-ignore-case on
set show-all-if-ambiguous on
# Expand homedir name
#set expand-tilde on
# Match all files
#set match-hidden-files on
# Use different colors to indicate file types
set colored-stats On
# Show visible marks to indicate file types
set visible-stats On
# Append "/" to all directory names
set mark-directories on
# Mark symlinked directories
set mark-symlinked-directories On
# Color the common prefix
set colored-completion-prefix On
# Color the common prefix in menu-complete
set menu-complete-display-prefix On
# Don't show control characters output (e.g. ^C)
set echo-control-characters off
$endif
$if mode=emacs
# ESC-s appends "sudo" to the beginning of the current line
"\es": "\C-asudo \C-e"
# Use up and down arrows to search history
"\e[A": history-substring-search-backward
"\e[B": history-substring-search-forward
# Map Ctrl-b to delete filenames
"\C-b": unix-filename-rubout
$endif
# End of file