-
Notifications
You must be signed in to change notification settings - Fork 43
/
.inputrc
83 lines (57 loc) · 1.71 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
# Woo!
set editing-mode vi
### Completion Options {{{1
# Show completion options on first tab; begin cycling on second tab.
set menu-complete-display-prefix on
# Show all available completion options on second tab.
set show-all-if-ambiguous on
set show-all-if-unmodified on
# Completion should ignore options case.
set completion-ignore-case on
# Treat - and _ as equivalent in completion options.
set completion-map-case on
# Prompt to show many completions (larger default for larger terminals).
set completion-query-items 500
# Avoid duplicating text when completing an option mid-word.
set skip-completed-text on
# Show symbols to denote file type of each completion option.
set visible-stats on
# Show completion options in color. Also highlight the search prefix.
set colored-stats on
set colored-completion-prefix on
### Display Options {{{1
# Append directories with a slash.
set mark-directories on
# Append symlinks with an at.
set mark-symlinked-directories on
### UTF {{{1
# Hard-code some UTF-8 conversion defaults.
set meta-flag on
set input-meta on
set output-meta on
set convert-meta off
### vi-mode edit bindings {{{1
# Treat symbols as word delimiters too.
set bind-tty-special-chars off
$if mode=vi
set keymap vi-command
"gg": beginning-of-history
"G": end-of-history
set keymap vi-insert
TAB: menu-complete
"\e[Z": menu-complete-backward
"\C-l": clear-screen
"\C-w": backward-kill-word
"\C-p": history-search-backward
"\C-n": history-search-forward
$endif
### Bash overrides {{{1
$if Bash
$endif
### Python REPL overrides {{{1
$if Python
$endif
### Cleanup {{{1
# IPython needs this to appear at the bottom of the
# file for clear-screen to work
set keymap vi