-
Notifications
You must be signed in to change notification settings - Fork 0
/
.inputrc
54 lines (40 loc) · 2.28 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
set show-all-if-ambiguous on
set completion-ignore-case on
set skip-completed-text on
#M-q = delete backward
"\eq": backward-kill-word
# If set to On, menu completion displays the common prefix of the list of possible completions (which may be empty) before cycling
# through the list.
set menu-complete-display-prefix on
# If set to On, readline uses an internal more-like pager to display a screenful of possible completions at a time.
set page-completions on
# If set to On, readline will display completions with matches sorted horizontally in alphabetical order, rather than down the
# screen.
set print-completions-horizontally on
# This alters the default behavior of the completion functions. If set to On, words which have more than one possible completion
# cause the matches to be listed immediately instead of ringing the bell.
set show-all-if-ambiguous on
# This alters the default behavior of the completion functions in a fashion similar to show-all-if-ambiguous. If set to On, words
# which have more than one possible completion without any possible partial completion (the possible completions don't share a common
# prefix) cause the matches to be listed immediately instead of ringing the bell.
set show-all-if-unmodified on
# If set to On, this alters the default completion behavior when inserting a single match into the line. It's only active when per‐
# forming completion in the middle of a word. If enabled, readline does not insert characters from the completion that match charac‐
# ters after point in the word being completed, so portions of the word following the cursor are not duplicated.
set skip-completed-text on
# ####################################################################################################
# BINDINGS, to know the console character used when typing something, use cat
# and change ^[ by \e ou \033
# ####################################################################################################
# shift-tab does navigate in menu-complete
"\e[Z":menu-complete
# C-p and C-n to navigate in completion
"\C-n":menu-complete
"\C-p":"\e-1\C-n"
# C-s and C-r like in emacs
"\C-r":reverse-search-history
"\C-s":forward-search-history
# insert last file or directory
"\e;": '\\\'$(last)\\\' \e\C-e'
# insert "| less" at the end
"\el": "\C-e | less"