-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathinputrc.symlink
79 lines (64 loc) · 2.27 KB
/
inputrc.symlink
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
set editing-mode vi
set keymap vi-command
# arrows
"\e[B": history-search-forward
"\e[A": history-search-backward
"j": history-search-forward
"k": history-search-backward
"\C-n": history-search-forward
"\C-p": history-search-backward
"\C-l": clear-screen
"\C-a": beginning-of-line
"H": beginning-of-line
"L": end-of-line
set keymap vi-insert
# arrows
"\e[B": history-search-forward
"\e[A": history-search-backward
"\C-n": history-search-forward
"\C-p": history-search-backward
"\C-l": clear-screen
"\C-a": beginning-of-line
"\C-e": end-of-line
"\C-u": backward-kill-line
"jj": vi-movement-mode
# disable for tramp
#"\C-j": menu-complete
# TAB: menu-complete
"\C-k": menu-complete-backward
# Be quiet
set bell-style visible
# Add trailing slash when autocompleting symlinks to directories
set mark-symlinked-directories on
# Ask to show more than this number of completions
set completion-query-items 100
# Allow UTF-8 input and output
set input-meta on
set output-meta on
set convert-meta off
# Disable completion colours as a lot of completions are /not/ files,
# which can make this misleading if they match file names (or are coloured
# to suggest they are a missing symlink, which is an issue with Solarized dircolors).
set colored-stats off
set visible-stats on
# Ignore case, treat _ and - the same
set completion-ignore-case on
set completion-map-case on
# menu-complete cycles through completion, like TAB in vim command mode but
# without showing all of the possible values. If on, this displays the common
# prefix on the first completion, and then starts cycling on the next.
set menu-complete-display-prefix off
# Enable application keypad
set enable-keypad on
# Don't expand tilde to /home/foo when autocompleting.
set expand-tilde off
# When there is more than one possible completion, list them immediately instead
# of ringing the bell and requiring completion to be called again.
set show-all-if-ambiguous on
set show-all-if-unmodified on
# Be more intelligent when autocompleting by also looking at the text after
# the cursor. For example, when the current line is "cd ~/src/mozil", and
# the cursor is on the "z", pressing Tab will not autocomplete it to "cd
# ~/src/mozillail", but to "cd ~/src/mozilla". (This is supported by the
# Readline used by Bash 4.)
set skip-completed-text on