-
Notifications
You must be signed in to change notification settings - Fork 0
/
.inputrc
52 lines (37 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
45
46
47
48
49
50
51
52
# readline settings
# === KEYBINDS ===
# Enable up-arrow history traversal based on partial command
# https://askubuntu.com/questions/59846/bash-history-search-partial-up-arrow
# up arrow
"\e[A":history-search-backward
# down arrow
"\e[B":history-search-forward
# Alternatives so hand doesn't have to jump around:
# Alt + k
"\ek":history-search-backward
# Alt + j
"\ej":history-search-forward
# Replace move forward/backward by "word" to forward/backward by "shell-word"
# The default "word" is any sequence comprising of [A-Z], [a-z] and [0-9]
# Shell-word: "delimited by non-quoted shell metacharacters"
# Makes it much easier to go forward/backward one full argument at a time
# Ctrl + left arrow
"\e[1;5D":shell-backward-word
# Ctrl + right arrow
"\e[1;5C":shell-forward-word
# Alternatives so hand doesn't have to jump around:
# Alt + h
"\eh":shell-backward-word
# Alt + l
"\el":shell-forward-word # NOTE: disables existing "lowercase forward word" binding
# (never used this)
# Notes:
# How to find which key combination corresponds to which escape sequence?
# In a bash shell, press Ctrl + V
# Press desired key combo
# See output, but replace ^[ with \e
# === TAB COMPETIONS ===
# Case-insensitive tab completion
set completion-ignore-case On
# Show list of ambiguous matches on first Tab press
set show-all-if-unmodified On