mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
bind keys across terms
This commit is contained in:
parent
e3a45ff410
commit
28c12215c6
2 changed files with 45 additions and 15 deletions
42
inputrc
42
inputrc
|
|
@ -8,21 +8,33 @@
|
|||
set completion-ignore-case on
|
||||
#set show-all-if-ambiguous
|
||||
|
||||
# Delete
|
||||
#"\e[3~": delete-char
|
||||
# Home
|
||||
#"\e[1~": beginning-of-line
|
||||
# End
|
||||
#"\e[4~": end-of-line
|
||||
"\e[1~": beginning-of-line
|
||||
"\e[4~": end-of-line
|
||||
"\e[5~": beginning-of-history
|
||||
"\e[6~": end-of-history
|
||||
"\e[2~": quoted-insert
|
||||
"\e[3~": delete-char
|
||||
"\e[5C": forward-word
|
||||
"\eOC": forward-word
|
||||
"\e[5D": backward-word
|
||||
"\eOD": backward-word
|
||||
"\e\e[C": forward-word
|
||||
"\e\e[D": backward-word
|
||||
# for rxvt
|
||||
"\e[7~": beginning-of-line
|
||||
"\e[8~": end-of-line
|
||||
# for non RH/Debian xterm, can't hurt for RH/Debian xterm
|
||||
"\eOH": beginning-of-line
|
||||
"\eOF": end-of-line
|
||||
# for freebsd console
|
||||
"\e[H": beginning-of-line
|
||||
"\e[F": end-of-line
|
||||
|
||||
# option+left/right
|
||||
#"\e[1;3D":backward-word
|
||||
#"\e[1;3C":forward-word
|
||||
# Option+left/right on iTerm2
|
||||
"\e[[C":forward-word
|
||||
"\e[[D":backward-word
|
||||
|
||||
# control+left/right
|
||||
#"\e[1;5D":beginning-of-line
|
||||
#"\e[1;5C":end-of-line
|
||||
# Control+left/right on iTerm2
|
||||
"\e[1;5D": beginning-of-line
|
||||
"\e[1;5C": end-of-line
|
||||
|
||||
# control+left/right
|
||||
"\e[1;5D":backward-word
|
||||
"\e[1;5C":forward-word
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue