I recently discovered that sending \033[5D and \033[5C sends the character to move a full word at a time, making mac os x terminal almost as awesome as the default ubuntu and debian terminals.
So then, the one thing I'm missing is: the control key to bind option-delete and option-backspace to deletion of full words.
Best Answer
~/.bash_profile
).If you choose to use ⌥ as meta-key, ⌥+backspace will work immediately, though this setup might break special characters you can only input by pressing ⌥ together with them (depending on your keyboard layout). If you don´t use that, you can delete by pressing esc and than backspace.
For forward-deleting a whole word, use either ⌥+D or esc and than D.