Friday, August 19, 2011

OMG, command line editing in mysql client

This is freaking awesome. To enable command line editing and searching in the mysql client, create ~/.inputrc and add the following lines...

set keymap vi
set editing-mode vi

Bam, vi commands in the shell. This is literally shaving hours off my work time.