Skip to content

Instantly share code, notes, and snippets.

@friek
Created May 26, 2015 15:31
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save friek/27a8070407605c82ea29 to your computer and use it in GitHub Desktop.
Save friek/27a8070407605c82ea29 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