Wednesday, August 19, 2009

Disable the annoying bell sound in bash

In bash, it's common to take the advantage of the "Tab" key helping you to auto-complete the command. Somehow, it will create annoying bell-sound when there are many matches and ...

So, how to disable it. Edit your ~/.inputrc, put something like
set bell-style none
Restart bash, no sound any more!

This applies to bash in both Linux and Mac OS X.

Wednesday, July 8, 2009

Emacs common commands

Search and Replace:
M-x then replace-string RET your_search_string RET your_replace_string