-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinputrc
executable file
·100 lines (77 loc) · 2.69 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Make Tab autocomplete regardless of filename case
set completion-ignore-case on
# Treat hyphens and underscores as equivalent
set completion-map-case on
# Don't prompt unless there are over 500 possible completions
set completion-query-items 200
# Skip text that's already in the completion result
set skip-completed-text on
# Displays the common prefix of the list of possible completions (which may be
# empty) before cycling through the list.
set menu-complete-display-prefix on
# List all matches in case multiple possible completions are possible
set show-all-if-ambiguous on
set show-all-if-unmodified on
# Immediately add a trailing slash when autocompleting symlinks to directories
set mark-symlinked-directories on
# Use the text that has already been typed as the prefix for searching through
# commands (i.e. more intelligent Up/Down behavior)
"\e[A": history-search-backward
"\e[B": history-search-forward
# "\e[A": history-substring-search-backward
# "\e[B": history-substring-search-forward
# Do not autocomplete hidden files unless the pattern explicitly begins with a dot
set match-hidden-files off
# Show extra file information when completing, like `ls -F` does
# Show character denoting a file's type is appended to the filename when listing possible completions.
set visible-stats on
# Show completions using different colors to indicate their file type.
# The color definitions are taken from the value of the LS_COLORS environment variable.
set colored-stats on
# blinks the matching parens on line input
set blink-matching-paren on
# Allow UTF-8 input and output, instead of showing stuff like $'\0123\0456'
set meta-flag on
set input-meta on
set output-meta on
set convert-meta off
# Enable history expansion with space
# E.g. typing !!<space> will replace the !! with your last command
Space: magic-space
# Use Alt/Meta + Delete to delete the preceding word
"\e[3;3~": kill-word
# Ctrl + W to delete word boundary instead of to space
# set bind-tty-special-chars on # this breaks vim
# "\C-w": backward-kill-word
# Use Crtl + V to paste from clipboard
"\C-v": paste-from-clipboard
# Disable Ctrl + S terminal locking
"\C-s":
# vt
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[5~": beginning-of-history
"\e[6~": end-of-history
"\e[3~": delete-char
"\e[2~": quoted-insert
# word movement
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
"\e[1;5D": backward-word
"\e[1;5C": forward-word
# rxvt
"\e[7~": beginning-of-line
"\e[8~": end-of-line
# xterm
"\eOH": beginning-of-line
"\eOF": end-of-line
# kvt
"\e[H": beginning-of-line
"\e[F": end-of-line
# securecrt
"\777": backward-word
"\002": forward-word
# for zsh/cmd style tab completion
TAB: menu-complete