Created
July 16, 2012 09:33
-
-
Save garrett/3121823 to your computer and use it in GitHub Desktop.
My super-useful ~/.inputrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"\e[1~": beginning-of-line | |
"\e[4~": end-of-line | |
"\e[5~": beginning-of-history | |
"\e[6~": end-of-history | |
"\e[3~": delete-char | |
"\e[2~": quoted-insert | |
"\e[5C": forward-word | |
"\e[5D": backward-word | |
"\e\e[C": forward-word | |
"\e\e[D": backward-word | |
"\e[1;5C": forward-word | |
"\e[1;5D": backward-word | |
set completion-ignore-case On |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
All lines except the last enable nice readline & bash cursor movement (control + arrow keys and what not) while the last line turns on case insensitivity for tab-completion, enabling you to have folders and files of mixed case characters while not having to type the capital letters. (For instance: You can have a directory called “Documents” and tab-complete by tying “doc”.)
You either want to place the above in ~/.inputrc or /etc/inputrc.
More info, including comments @ http://linuxart.com/log/archives/2005/10/13/super-useful-inputrc/
(Note: Due to a bug, wordpress won't let me update the article. This one is more up-to-date, and support Linux of various versions (due to the multiple forward-word/backward-words, including the last of each for modern Linux distros).)