-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinputrc
71 lines (53 loc) · 2.34 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
# https://ss64.com/bash/syntax-inputrc.html
# I actually don't think this works with my symlink, if I want to include it more
# directly:
# bind -f ./inputrc
# http://stackoverflow.com/questions/15027186/inputrc-file-cannot-be-loaded
# https://news.ycombinator.com/item?id=5565689
# https://coderwall.com/p/oqtj8w/the-single-most-useful-thing-in-bash
# type cd <UP-arrow> and you will go through all history that starts with cd
"\e[A": history-search-backward
"\e[B": history-search-forward
# mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
# "\e[5C": forward-word
# "\e[5D": backward-word
# "\e\e[C": forward-word
# "\e\e[D": backward-word
# starts in insert mode, hit escape to move around the command line using vi bindings
# for some reason, this needs to be before menu-complete, otherwise it turns off
# menu completion
set editing-mode vi
# https://stackoverflow.com/a/51732355/5006
# display all possible matches for an ambiguous pattern at first tab
set show-all-if-ambiguous on
# next tab(s) will cycle through matches
#TAB: menu-complete
# shift tab cycles backward
#"\e[Z": menu-complete-backward
# on 5-26-2016 I disabled the above line because I found it way more annoying than
# I thought I would and way less helpful
# I re-activated this on 1-21-2022 and have been annoyed by it ever since, so I'm
# disabling this again on 12-10-2022
set completion-ignore-case on
set page-completions off
# http://viget.com/extend/level-up-your-shell-game
# By adding this line you can instead use tab to cycle through all the possible
# completions stopping on which ever one is the correct one.
#"\t": menu-complete
# on 5-26-2016 I disabled the above line because I found it way more annoying than
# I thought I would and way less helpful
# type control-d from anywhere on the line and the whole line is gone and you’re
# ready to start fresh.
"\C-d": kill-whole-line
# http://old.nabble.com/show-all-if-ambiguous-broken--td1613156.html
# http://stackoverflow.com/a/68449/5006
# http://liquidat.wordpress.com/2008/08/20/short-tip-bash-tab-completion-with-one-tab/
# http://superuser.com/questions/271626/
set mark-symlinked-directories on
set show-all-if-unmodified on
# none, visible or audible
set bell-style none
# Allow UTF-8 input and output, instead of showing stuff like $'\0123\0456'
set input-meta on
set output-meta on
set convert-meta off