-
Notifications
You must be signed in to change notification settings - Fork 8
/
inputrc
69 lines (60 loc) · 2.04 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
##### My (demuredemeanor) .inputrc
# Uses shiftwidth=4 for tabs; foldmarker={{{,}}} for folds;
# https://notabug.org/demure/dotfiles/
# legacy repo http://github.com/demure/dotfiles
### Completion Stuffs ### {{{
## Tab complete ignores case
set completion-ignore-case on
## Comp longest explicit match, then print remaining values
set show-all-if-ambiguous on
## With ignore on, will ignore diff between '-' and '_'
set completion-map-case on
## Disable more-like pager of completion list
set page-completions off
## Steps through list, can give n first
"\t": menu-complete
## Colored completion based on filetype
set colored-stats on
## When completing in middle of word, don't dupe matching text after word
set skip-completed-text on
## Show filetype info in completion suggestions, like ls -F output
set visible-stats on
## Shift-TAB to menu-complete backwards
# cf. http://www.tikirobot.net/wp/2006/03/29/reverse-menu-complete-in-bash/
# \C-y:"\M--\C-i"
## Append symbol for file, in tab completion
set visible-stats on
### End Completion Stuffs ### }}}
### Keyboard ### {{{
"\e[3~": delete-char
"\e[A": history-search-backward
"\e[B": history-search-forward
### End Keyboard ### }}}
### History Stuffs ### {{{
## Ended up disabling these as the prompt got a bit wonky
# set mark-modified-lines on
# set history-preserve-point on
### End History Stuffs ### }}}
### Editing Mode ### {{{
## I prefer some of emacs key bindings as OS X uses them.
# set editing-mode vi
# set keymap vi-insert
# vi-command vi-insert
### End Editing Mode ### }}}
### For Other Languages ### {{{
## Enable 8 bit input (doesn't clear 8th bit in chars it reads)
set meta-flag on
## Same flag...
set input-meta on
## Display chars' 8th bit set directly, instead of esc sequence
set output-meta on
## Prevent 8th bit strip
set convert-meta off
### End Other Languages ### }}}
### For Bell ### {{{
set bell-style audible
### End Bell ### }}}
### Testing ### {{{
## Add missing / when tab-completing symbolic links to dirs
# set mark-symlinked-directories on
### End Testing ### }}}