"Finally, there is no easy way to edit text that we enter in the terminal. Going to the end/beginning of the line depending which place it’s closer to the point you want to edit, and then moving your cursor over one character at a time to get to the destination - sounds familiar? I was so frustrated with that, that I made it a habit to enter all the commands in text editor then copy & paste to the terminal window!"
You do know there are emacs and vi modes for bash, right?
I use emacs mode for bash, which is default on mac. Then i bind 'option cursor left' to \033b and 'option cursor right' to \033f.
Voila, next and previous word using alt+arrow keys. Good enough for me :).
dude seriously if reinventing for the sake of reinventing there is no point, what's wrong with having a irb terminal and do copy and paste over a skype chat?
It's additional evidence (in addition to dhconnelly above) that the author actually has no idea how to use the shell properly.
"I've designed a new car ... this one, you can POINT in the direction you want to go! No more stopping, getting out, and manually turning the front wheels every time you want to turn!"
Right, only Yoke isn't the shell, so it doesn't have $CWD. Which is probably why the author wanted to call specific attention to the fact that it can still supply $CWD-like functionality.
20 comments
[ 145 ms ] story [ 1513 ms ] threadYou do know there are emacs and vi modes for bash, right?
http://www.hypexr.org/bash_tutorial.php#emacs http://www.hypexr.org/bash_tutorial.php#vi
Seriously, the command line is a fantastic programming environment. Learn more bash and your life will be better.
Seriously, when did geeks lose their grasp on the concept of hack value?
"I've designed a new car ... this one, you can POINT in the direction you want to go! No more stopping, getting out, and manually turning the front wheels every time you want to turn!"
Like $CWD ?