I am currently using bash on OSX (via iTerm2). Sometimes I have to run programs with a very lengthy set of command line arguments. If I find that I've mistyped, it takes way too long to arrow back to the mistake and fix it. I know some programs, such as nano, support mouse reporting for cursor positioning. Is this supported by any shells, or (even better) as an option to bash?
Sounds like you would benefit from investing a short amount of time in learning
(Unless otherwise noted, "word" means an alphanumeric string.)
I list the last few because I find them more convenient than reaching for the arrow keys or delete/backspace. You can see how with these basic shortcuts you can do quite a bit of editing rather easily. But there are more:
And these are just a few of the ones I use - there are many more in the manpage.
GPM (General Purpose Mouse) is a mouse server for the console and xterm
EDIT: Apparently there's also a version 2.
I don't know but ...
to repeat the last command after correcting
to repeat the last command that contained the word
you can use emacs-style editing commands to move quickly through the line.
I prefer vi mode
This isn't an 'answer', but it is a solution. I am submitting it as an answer because I require the extra room.
Have you tried using a combination of Home and Alt + Left
With these key combos, it should be alot easier to traverse back to your mistake =)