News for hackers. Stuff that matters.
Re:Reinventing tools for developers, let's start with unix t... by dhconnelly on Monday March 12, 2012 @10:03AM (#3693508)
"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?

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.

Re:Reinventing tools for developers, let's start with unix t... by bumeye on Monday March 12, 2012 @10:25AM (#3693602)
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 :).
Re:Reinventing tools for developers, let's start with unix t... by czzarr on Monday March 12, 2012 @10:16AM (#3693570)
you just made my day sir. I never knew vi mode existed for bash.
Re:Reinventing tools for developers, let's start with unix t... by niznikpawel on Monday March 12, 2012 @12:44PM (#3694254)
Ha, amazing someone just learned something :).
Re:Reinventing tools for developers, let's start with unix t... by gte910h on Monday March 12, 2012 @08:22PM (#3696374)
Dude, I owe you a steak. Holy crap.
Re:Reinventing tools for developers, let's start with unix t... by lysol on Monday March 12, 2012 @11:38AM (#3693901)
Someone needs to tell this guy about ctrl-r and !!.
Re:Reinventing tools for developers, let's start with unix t... by niznikpawel on Monday March 12, 2012 @11:59AM (#3694011)
ctrl + R is nice, helpful automation, though somehow limited - eg. search & edit command easily.
Re:Reinventing tools for developers, let's start with unix t... by unimpressive on Monday March 12, 2012 @10:05AM (#3693517)
Working on it. Or rather "Working on it after I know shell well enough to identify the problems with it."
Re:Reinventing tools for developers, let's start with unix t... by samuel1604 on Monday March 12, 2012 @10:08AM (#3693533)
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?
Re:Reinventing tools for developers, let's start with unix t... by bunderbunder on Monday March 12, 2012 @01:18PM (#3694412)
Perhaps the point is to have some fun.

Seriously, when did geeks lose their grasp on the concept of hack value?

Re:Reinventing tools for developers, let's start with unix t... by dfc on Monday March 12, 2012 @10:17AM (#3693572)
What is with the semicolons at the end of each example shell command? I'm only familiar with bash. Is this a new shell's syntax?
Re:Reinventing tools for developers, let's start with unix t... by dmd on Monday March 12, 2012 @11:25AM (#3693837)
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!"

Re:Reinventing tools for developers, let's start with unix t... by niznikpawel on Monday March 12, 2012 @12:34PM (#3694197)
That actually is a nice idea indeed :).
Re:Reinventing tools for developers, let's start with unix t... by smcdow on Tuesday March 13, 2012 @11:14AM (#3698786)
Um, no mention of shell functions? I recommend to the author that he spend a full day carefully studying the bash man page.
Re:Reinventing tools for developers, let's start with unix t... by dfc on Monday March 12, 2012 @10:21AM (#3693592)
"That can be used to store e.g. a current working directory."

Like $CWD ?

Re:Reinventing tools for developers, let's start with unix t... by bunderbunder on Monday March 12, 2012 @10:31AM (#3693623)
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.
Re:Reinventing tools for developers, let's start with unix t... by dfc on Monday March 12, 2012 @10:38AM (#3693655)
So it can not interact with shell variables? How is that supposed to boost my shell-fu?
Re:Reinventing tools for developers, let's start with unix t... by niznikpawel on Monday March 12, 2012 @12:04PM (#3694033)
Yep, soon I'll update Yoke with that.
Re:Reinventing tools for developers, let's start with unix t... by czzarr on Monday March 12, 2012 @10:12AM (#3693549)
this is pretty cool. it's very close in philosophy to bret victor's last demo at cusec https://vimeo.com/36579366
Re:Reinventing tools for developers, let's start with unix t... by niznikpawel on Monday March 12, 2012 @12:06PM (#3694049)
Thanks, will definitely see the video.