-
Notifications
You must be signed in to change notification settings - Fork 9
/
inputrc
44 lines (43 loc) · 1.35 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
set enable-bracketed-paste on
set blink-matching-paren on
set colored-completion-prefix on
set colored-stats on
set keyseq-timeout 250
set show-all-if-ambiguous on
set visible-stats on
# Docs:
# Bindable Readline Commands: https://tiswww.case.edu/php/chet/readline/readline.html#SEC13
#
# Keybindings:
# C-] <char> search forward for the char
# M-C-] <char> search backward for the char
# C-@ set mark
# C-x C-x exchange point and mark (point is where the cursor is)
# M-* complete with all expansions inline
# M-{ same as M-*, but uses brace expansion
# M-$ complete variable
#
# custom:
# ```
# "\ex": "echo hello"
# "\C-x": "echo hello"
# "\C-x": "echo hello"
# ```
#
# Ruby:
# Ruby programs that use readline come in as "ruby"
# Not super useful :/ I assume it's because of this line
# https://github.com/ruby/ruby/blob/917bc68772e447c9fe7f86ee1588e13771b992b6/ext/readline/readline.c#L1893
# Might not be hard to add a method which changes that variable
#
# ```
# $if Ruby
# set visible-stats on
# $endif
# ```
#
# Introspection in Bash:
# Primary interface seems to be the `bind` function
# bind -v # list variables, like what we set above
# bind -p # print existing keybindings
# bind -l # list functions you can bind keys to