Go to content Go to navigation Go to search

I am used to using Ctrl-Left Arrow/Ctrl-Right Arrow to move quickly word-by-word on the Bash command line. I kept having an issue with it not working in Mac OS X, however.

Finally I dug in and found out the problem: you need to map the key sequence Terminal.App sends for Ctrl-Left/Right Arrow to forward-word and backward-word.  Here’s how to do it; add these lines to your ~/.inputrc file (create the file if it doesn’t already exist):

”\e[5C”: forward-word
”\e[5D”: backward-word
”\e[1;5C”: forward-word
”\e[1;5D”: backward-word

and that should do it.

Blogged with the Flock Browser

Switched to Ubuntu

6 January 2008, 03:05

After wrestling with installing Debian (etch and lenny) onto my new system using an Intel DP35DP-based motherboard, I tried Ubuntu.  It just installed fine—probably they included SATA support early.   And because there is an easy way to copy my selected packages, I am back in business quickly.

Blogged with Flock

Tags: