-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.inputrc
39 lines (29 loc) · 1.03 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
# tested on urxvt
# applies to readline (gdb, python, profanity, ...), bash, ...
# but not zsh, see ~/.omz.custom/key-bindings.zsh
# For emacs tramp
$if term=dumb
# no configs: can break emacs tramp !
$else
"\eOc": forward-word # [Ctrl-Right]
"\eOd": backward-word # [Ctrl-Left]
"\C-h": backward-kill-word # [Ctrl-Backspace]
# xterm ? (foot)
"\e[1;5C": forward-word # [Ctrl-Right]
"\e[1;5D": backward-word # [Ctrl-Left]
# "\e[3^": kill-word # [Ctrl-Del]
# "\e[8^": end-of-line # [Ctrl-End]
# "\e[7^": beginning-of-line # [Ctrl-Home]
# safer paste
# https://cirw.in/blog/bracketed-paste
set enable-bracketed-paste on
# Bash: cycle completion candidates inplace instead of showing them all
#"\t": menu-complete
# Bash: add completion color
set menu-complete-display-prefix on
set colored-completion-prefix on
set colored-stats on
# Bash: TAB completes immediately
set show-all-if-ambiguous on # always displays candidates if ambigious
#set show-all-if-unmodified on # ... but not if prefix was found and added
$endif