Skip to content

Instantly share code, notes, and snippets.

@ts-3156
Last active December 16, 2015 11:29
Show Gist options
  • Save ts-3156/5427529 to your computer and use it in GitHub Desktop.
Save ts-3156/5427529 to your computer and use it in GitHub Desktop.
# for linux
#source /etc/inputrc
# type Ctrl+V
# type the key sequence you are interested in (e.g., Alt+→). This would print ^[[1;3C
# remove the leading ^[ and replace it with \e to make \e[1;3C
# place this value in your .inputrc file.
"\eOC": forward-word
"\eOD": backward-word
# windows, putty, tmuxではダメな設定
"\e[C": forward-word
"\e[D": backward-word
$if mysql
"\C-xd": "show databases;\n"
"\C-xt": "show tables;\n"
"\C-xp": "show full processlist;\n"
$endif
#set completion-ignore-case on
#"\e[A": history-search-backward
#"\e[B": history-search-forward
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment