Skip to content

Instantly share code, notes, and snippets.

@mister2d
Created March 23, 2020 05:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mister2d/a4f6375a249ccafdae35e05b2923a7f3 to your computer and use it in GitHub Desktop.
Save mister2d/a4f6375a249ccafdae35e05b2923a7f3 to your computer and use it in GitHub Desktop.
Restore control keys in Linux terminal
## Assumed $TERM=xterm
# Include system-wide /etc/inputrc if you wish.
$include /etc/inputrc
"\eOD": backward-word
"\eOC": forward-word
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[5~": beginning-of-history
"\e[6~": end-of-history
"\e[3~": delete-char
"\e[2~": quoted-insert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment