Two things that improve my bash productivity – stopping the cursor keys inserting characters in vim and history search in bash.

Edit ~/.vimrc or /etc/vim/vimrc (for system wide) and add turn off vi compatibility:

set nocompatible

The latter can be improved by editing ~/.inputrc (or /etc/inputrc for everyone). Pressing the up key scrolls through all the commands you’ve typed but by adding:


You can type the first letter or two and get the command you need, so if you typed “mysql -u root -p” last Tuesday but can’t remember the options, typing “my” and pressing the up key will find it.

This entry was posted in Computing, Linux, Ubuntu and tagged , , . Bookmark the permalink.

2 Responses to Bash

  1. RainCT says:

    Thanks for the Bash tip, I’ve just created the ~/.inputrc file to see how it works for me :).

  2. Pingback: My dot files (Tips and Tricks for Bash & co.) @ Eurion ยท RainCT's Blog

Comments are closed.