2 ms·
I learnt something handy in BASH recently - operate-and-get-next (Ctrl-o). If you type: $ echo one one $ echo two two $ echo three three Then up-a
by simoncoggins 16y ago
I learnt something handy in BASH recently - operate-and-get-next (Ctrl-o). If you type:
$ echo one
one
$ echo two
two
$ echo three
three
Then up-arrow back to 'echo one'. Then press Ctrl-o instead of enter it will execute the command and display the following one in your history ('echo two' in this case).
Very handy for replaying a series of commands.
http://www.faqs.org/docs/bashman/bashref_101.html http://www.faqs.org/docs/bashman/bashref_101.html
- ryanf 16y agoThis is in the man page for bash on Snow Leopard, but it doesn't seem to actually work. Does anyone know why?
- simoncoggins 16y agoThere's a solution here: http://hintsforums.macworld.com/archive/index.php/t-82501.html http://hintsforums.macworld.com/archive/index.php/t-82501.ht... 'stty -iexten' fixed it for me on my Mac.