-
Notifications
You must be signed in to change notification settings - Fork 0
/
.inputrc
61 lines (56 loc) · 2.02 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
set mark-symlinked-directories On
set show-all-if-ambiguous On ## Show all completion options
set show-all-if-unmodified On
#"\e[D": backward-char
#"\e[C": forward-char
$if bash
"\e[5D": backward-word ## ^Left: MacOS
"\e[1;5D": backward-word ## ^Left: cygwin
"\e[5C": forward-word ## ^Right: MacOS
"\e[1;5C": forward-word ## ^Right: cygwin
"\e[F": end-of-line ## End: MacOS (Konsole)
"\e[4~": end-of-line ## End: cygwin
#"\e[F": kill-line ## ^End: Linux on Win
"\e[1;5F": kill-line ## ^End: MacOS
"\e[4;5~": kill-line ## ^End: cygwin
"\e[3~": delete-char ## Delete
"\e[3;5~": kill-line ## ^Del: MacOS
"\e[1~": beginning-of-line ## Home: cygwin
#"\e[H": backward-kill-line ## ^Home: Linux on Win
"\e[1;5H": backward-kill-line ## ^Home: MacOS
"\e[2~": overwrite-mode ## Ins key: Cygwin
## Up/down will traverse thru history filtered by any initial commandline input
C-p: history-search-backward
#"\e[A": "\C-p\C-e"
"\e[A": history-search-backward
C-n: history-search-forward
#"\e[B": "\C-n\C-e"
"\e[B": history-search-forward
"\e\e": kill-whole-line
#C-w: kill-word ## For some reason this is not active by default
C-w: "\ed" ## ... C-w has to use a macro call.
C-z: undo
#"\C-xi": overwrite-mode
"\C-x\C-f": dump-functions
"\C-x\C-a": dump-variables
"\C-x\C-h": dump-macros
TAB: menu-complete
"\e[Z": "\e-1\C-i" ## Shift-TAB: "opposite of TAB"
"\C-xp": "PATH=${PATH}\e\C-e\C-a\ef\e[C" ## Edit PATH
"\C-xv": "\C-a\eu\eb\C-k$\C-y\e\C-e\C-a\C-y=" ## Edit variable
C-q: "\C-xv"
#"\C-xv": "\ef\e \ed$\C-y\e\C-e\C-x\C-x\C-y=" ## Edit variable
#INS: overwrite-mode
## https://www.youtube.com/watch?v=iupj4i7NRes
## tab & s-tab to cycle fwd/backwards
# "/t": menu-complete
# "\e[Z": menu-complete-backward
## Show
# set show-all-if-ambiguous on ## Show all completion options
# set show-all-if-unmodified on
# set menu-complete-display-prefix on
# "\e[A": history-search-backward
# "\e[B": history-search-forward
# "\eOA": history-search-backward
# "\eOB": history-search-forward
$endif ## bash