Skip to content

Instantly share code, notes, and snippets.

@brainv
Forked from friek/.editrc
Created June 7, 2021 19:19
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 brainv/a86f4c2047fd27687f69d76964e53f5a to your computer and use it in GitHub Desktop.
Save brainv/a86f4c2047fd27687f69d76964e53f5a to your computer and use it in GitHub Desktop.
MySQL client .editrc for backwards compatibility with libreadline
# Ctrl+W to delete the previous word
bind "^W" ed-delete-prev-word
# Ctrl+U to delete the current line contents
bind "^U" vi-kill-line-prev
# Ctrl+R to search the query history
bind "^R" em-inc-search-prev
# Ctrl+Left Arrow to go the previous word
bind "\e[1;5D" vi-prev-word
# Ctrl+Right Arrow to go to the next word
bind "\e[1;5C" vi-next-word
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment