MacOS – Better terminal program for Snow Leopard (OS X)

command linemacososx-snow-leopardterminal

Does anybody know a better terminal program for snow leopard which allows for text editing? (i.e. jumping to a specific character without having to use the arrows to go one by one) etc..?
thanks!

UPDATE: Sorry, I meant updating a command that was already written. Say I wanted to do something like script/generate migration add_field_to_something. I wrote that and Rails generated a migration. Now I decide that I want to get rid of that migration because I made some sort of mistake. To do so, I'll need to write script/destroy migration add_field_to_something. Right now, I have three options: 1) write the whole command from start to finish 2) Hit the 'up' button to reproduce the last command, and then the left arrow until I get to the word generate and then delete and write destroy, or 3) copy that last command into a TextEdit, select it with the mouse (or skip words with command + left-arrow to select faster – not possible in terminal) and then replace that with the word destroy, then copy back to terminal. My question is – is there a terminal program that allows for editing with the mouse/skipping words like I do in TextEdit (i.e. with command + left-arrow) to save time?

Thanks!

Best Answer

Are you looking for an editor, or a terminal program? A terminal emulator is separate from an editor, and won't support the mouse pointer.

EDIT

Thanks for clarifying. You may be interested in the zsh shell, which has a number of keyboard shortcuts for moving the cursor:

  • Alt-A - Move to the beginning of the line
  • Alt-E - Move to the end of the line
  • Alt-F - Move Forward one word
  • Alt-B - Move Backward one word

Also, bash, which is the default shell, has keyboard shortcuts for moving to the beginning and end of the line:

  • Ctrl-A - Move to the beginning of the line
  • Ctrl-E - Move to the end of the line
Related Question