-
Notifications
You must be signed in to change notification settings - Fork 0
/
.inputrc
49 lines (47 loc) · 1.39 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
# show matching parenthesis
set blink-matching-paren on
# highligh common prefix
set colored-completion-prefix on
set colored-stats on
set completion-ignore-case on
# treat _ and - alike in case-insensitive mode
set completion-map-case off
set editing-mode vi
# first tab shows list, next cycles
set menu-complete-display-prefix on
# move backward
# "\e[Z": menu-complete-backward
set print-completions-horizontally on
set show-all-if-ambiguous on
# use only one tab to show list of autocomplete candidates
set show-all-if-unmodified on
# set completion-ignore-case on
# Treat hypens and underscores as equivalent when completing
# set completion-map-case on
# show vi mode indicator
set show-mode-in-prompt on
# show filetype in completion
set visible-stats on
# If a tab-completed file is a symlink to a directory,
# treat it like a directory not a file
set mark-symlinked-directories on
# how long wait for next key for chorder binding
set keyseq-timeout 0
$if term=linux
set vi-ins-mode-string \1\e[?0c\2
set vi-cmd-mode-string \1\e[?8c\2
$else
set vi-ins-mode-string \1\e[5 q\2
set vi-cmd-mode-string \1\e[2 q\2
$endif
# detect paste
set enable-bracketed-paste
# keybindings
Control-k history-search-backward
Control-j history-search-forward
Control-n menu-complete
Control-p menu-complete-backward
Control-a beginning-of-line
Control-e end-of-line
# Ctrl-/ is sent as Ctrl-_
Control-_ insert-comment