Mercurial > ec-dotfiles
annotate rc/inputrc @ 670:1d8596cf49bc
[inputrc] Workaround for ruby reline ctrl-u bug
author | nanaya <me@nanaya.pro> |
---|---|
date | Mon, 17 Jan 2022 01:15:05 +0900 |
parents | 485c0f09d01f |
children | 9713ac597983 |
rev | line source |
---|---|
6 | 1 #Basic settings |
2 set bell-style none | |
3 set keymap emacs | |
4 | |
383
9b47effe702f
Better directory symlink tab completion.
Edho Arief <edho@myconan.net>
parents:
347
diff
changeset
|
5 # automatically append / to symlinked directories |
9b47effe702f
Better directory symlink tab completion.
Edho Arief <edho@myconan.net>
parents:
347
diff
changeset
|
6 set mark-symlinked-directories on |
9b47effe702f
Better directory symlink tab completion.
Edho Arief <edho@myconan.net>
parents:
347
diff
changeset
|
7 |
6 | 8 #Home/End |
9 #GNOME Terminal | |
10 "\eOH": beginning-of-line | |
11 "\eOF": end-of-line | |
12 #tmux | |
13 "\e[1~": beginning-of-line | |
14 "\e[4~": end-of-line | |
15 | |
16 #Delete | |
17 "\e[3~": delete-char | |
18 | |
19 #Alt-Left/Right | |
20 #GNOME Terminal | |
21 "\e[1;3D": backward-word | |
22 "\e[1;3C": forward-word | |
23 #tmux | |
24 "\e\e[D": backward-word | |
25 "\e\e[C": forward-word | |
26 | |
644 | 27 $if Ruby |
670
1d8596cf49bc
[inputrc] Workaround for ruby reline ctrl-u bug
nanaya <me@nanaya.pro>
parents:
644
diff
changeset
|
28 # Eventually remove this bug workaround |
1d8596cf49bc
[inputrc] Workaround for ruby reline ctrl-u bug
nanaya <me@nanaya.pro>
parents:
644
diff
changeset
|
29 # Reference: https://github.com/ruby/reline/pull/416/files |
1d8596cf49bc
[inputrc] Workaround for ruby reline ctrl-u bug
nanaya <me@nanaya.pro>
parents:
644
diff
changeset
|
30 "\C-u": unix-line-discard |
644 | 31 $else |
6 | 32 #Up/Down |
33 "\e[A": history-search-backward | |
34 "\e[B": history-search-forward | |
61
81d132d8c757
[inputrc] Added history search for gnome terminal version.
Edho Prima Arief <me@myconan.net>
parents:
6
diff
changeset
|
35 #GNOME Terminal |
81d132d8c757
[inputrc] Added history search for gnome terminal version.
Edho Prima Arief <me@myconan.net>
parents:
6
diff
changeset
|
36 "\eOA": history-search-backward |
81d132d8c757
[inputrc] Added history search for gnome terminal version.
Edho Prima Arief <me@myconan.net>
parents:
6
diff
changeset
|
37 "\eOB": history-search-forward |
644 | 38 $endif |