Created
May 26, 2015 15:31
-
-
Save friek/27a8070407605c82ea29 to your computer and use it in GitHub Desktop.
MySQL client .editrc for backwards compatibility with libreadline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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