Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sjs
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
151.
▲
by
sjs
15y ago
Is this only in zsh? I've been recommending this and not marking it explicitly as a zsh thing. alt-. works too. In the shell ESC <foo> is the same as alt-<foo>. The difference being that with alt-<foo> you hold alt a
152.
▲
by
sjs
15y ago
# seems safer... what if you're typing a mv command on a BSD machine that also has GNU binutils and the random character you hit is a "g"? Bad news.
153.
▲
by
sjs
15y ago
For those using zsh hit alt-q to stash the current command. After you run the next command your stashed line will be brought back for you. alt-h behaves similarly but runs `man <command you were typing>`, so if you have this:
154.
▲
by
sjs
15y ago
Thank you! No more while true + sleep loops for me.
155.
▲
by
sjs
15y ago
alt-. or (ESC .) does something similar, but can be pressed repeatedly to keep going back further in history in case the argument you want isn't on the most recent command. !! is short for the previous command, but you can do !-2$ to get th
156.
▲
by
sjs
15y ago
Brace expansion is bad ass. http://www.gnu.org/software/bash/manual/bashref.html#Brace-E... And it's even better in zsh. http://zsh.sourceforge.net/Doc/Release/Expansion.html#Brace-...
157.
▲
by
sjs
15y ago
You can learn a lot by searching the web, so many folks don't learn something new by reading the first chapter of any intro to Unix (or the shell) book anymore. It's still surprising though. If you search for help with command line utils yo
158.
▲
by
sjs
15y ago
You'll want to quote .java so the shell doesn't interpret it as a glob, and find doesn't use GNU style flags. You can also pass wc the filenames directly like this: wc -l $(find . -name '*.java')
159.
▲
by
sjs
15y ago
Too bad. This would have been enough for me to reactivate my Netflix account here in Canada, but instead I'll just get it via btjunkie and Transmission.
160.
▲
by
sjs
15y ago
I'm lazy and don't want to type out the github URL, but you're right I should place the redirection under my control and use HTTPS. Honestly though I cannot think of a single reason why anyone would want to hijack my script. I don't do anyt
161.
▲
by
sjs
15y ago
She was probably creeped out by Jimmy's mug staring her down, eerily grinning at her. "Hi there. I'm watching you."
162.
▲
by
sjs
15y ago
I run wget -qO - bit.ly/newbox | sh or curl -Ls bit.ly/newbox | sh and am up and running. No sweat. I keep this stuff in Dropbox too, just in case.
163.
▲
by
sjs
15y ago
I already have and use Instapaper. What reasons are there to start using Readability instead?
164.
▲
by
sjs
15y ago
The Vaio Z is a sweet series. If I didn't use a Mac I would almost certainly buy the Vaio Z. Last I scoped out notebooks that was the case anyway.
165.
▲
by
sjs
15y ago
My 2010 15" MacBook Pro w/ i7 @ 2.66 GHz and 1680x1050 has a loud fan. The fan spins up when I have an external display plugged in. It spins up when Time Machine runs. It spins up when Flash is running in a browser. I find it really annoyin
166.
▲
by
sjs
15y ago
They're fixing it soon: https://twitter.com/#!/applidium/status/136175883055661057
167.
▲
by
sjs
15y ago
Probably so it'll work through strict proxies.
168.
▲
by
sjs
15y ago
That's exactly what Cmd-h and Cmd-Opt-H are for. This is a solved problem on OS X.
169.
▲
by
sjs
15y ago
Sorry, my mistake. I agree with you, and disagree with all of the quoted statement. IBM did survive the PC even if they got out of the PC business. It's not clear if the "PC guys" are PC makers or those who make software for PCs, but either
170.
▲
by
sjs
15y ago
Does it really have to be qualified with "for his age and experience"? It seems to me like that's simply understood in this context.
171.
▲
by
sjs
15y ago
By "the like" I mean tiling WMs. "Primitive" was the wrong word, I should have said "intrusive". I used tiling WMs almost exclusively for quite a while. My problem with them is that they tile by default, which is fine for some things but I
172.
▲
by
sjs
15y ago
> It's not 1990 anymore. All the more reason not to have a maximize button. Displays only get more pixels year to year.
173.
▲
by
sjs
15y ago
If anyone believes that Steve Jobs was "devoid of any kind of feelings towards anyone else" they are only fooling themselves. Painting him in a universally negative light is just as naïve as painting him in a universally positive one. Few t
174.
▲
by
sjs
15y ago
What? Who ever said anything about post-PC devices not accessing the web? Way to knock down that straw man.
175.
▲
by
sjs
15y ago
I hope he also avoids products and media made my anyone who has not been an absolute saint their entire life. It's perfectly acceptable to dislike Jobs, no question about that whatsoever. It's also acceptable to stop buying Apple stuff for
176.
▲
by
sjs
15y ago
Everyone is better off with Adobe on the "same team". They were trying to swim upstream and they knew it. The web dev world was marching forward with or without them and I'm glad they made the difficult but correct decision to embrace what
177.
▲
by
sjs
15y ago
> Homebrew is awesome but it should be way easier to compile from source without installing Xcode. If it was a real issue someone would have packaged up GCC or LLVM. There is absolutely nothing that prevents anyone from doing this. The
178.
▲
by
sjs
15y ago
The canonical shortcuts are Cmd-left/right/up/down, which move the cursor to the absolute left, right, top, and bottom of the document, respectively. This makes perfect sense. Home and End behave differently, they move the viewport to t
179.
▲
by
sjs
15y ago
They work in every Cocoa text field. Ctrl-[abefnp] ... not sure if I missed any. Those are the ones I use daily.
180.
▲
by
sjs
15y ago
If you asked a friend or searched Google instead of writing your problems here perhaps you would have found the solutions. You took time to learn how to use Linux and the shell, why not take some time to learn how to use OS X as well before
More ›