# In accordance with the Emacs/GNU Bash readline keyboard shortcuts
# http://www.catonmat.net/download/readline-emacs-editing-mode-cheat-sheet.pdf
# https://www.gnu.org/software/bash/manual/html_node/Commands-For-Killing.html

"\C-a": beginning-of-line
"\C-e": end-of-line
"\C-f": forward-word
"\C-b": backward-word
"\e[D": backward-char
"\e[C": forward-char

# "\e[B": next-history
# "\e[A": previous-history
"\e[A": history-search-backward
"\e[B": history-search-forward

"\C-h": backward-delete-char
"\C-?": backward-delete-char
"\C-u": undo
"\C-d": delete-char
"\C-k": kill-line
"\C-i": complete
"\C-j": accept-line
"\C-m": accept-line
"\C-w": backward-delete-word
"\C-x\e[3~": backward-kill-line
"\e\C-?": backward-kill-word

# for linux console
"\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

# for rxvt                     #added
"\e[7~": beginning-of-line
"\e[8~": end-of-line

# for xterm
"\eOH": beginning-of-line
"\eOF": end-of-line

# for freebsd console
"\e[H": beginning-of-line
"\e[F": end-of-line