Weblog entry #2 for mcortese
I have become conscious that the two commands that I use most of the time in a shell are ls and less, and usually in that exact order. So I spend a lot of time going at the beginning of the current command line and editing the ls into a less.
Now I have added an entry to ~/.inputrc that binds the F12 key to the action "replace the first word with less".
This is the entry:
"\e[24~": "\C-aless\ed\C-e"
Of course, to test it in a shell, one should type:
$ bind '"\e[24~": "\C-aless\ed\C-e"'
Comments on this Entry
[ Parent | Reply to this comment ]
But the command must be ls (and not, say, file).
And then... One keystroke versus 5! It's a deal! :-)
[ Parent | Reply to this comment ]