Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
okdana
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
okdana
5y ago
AirDrop also shares your full name (seemingly the one associated with your Apple ID, not what you have set for yourself in your contacts), both by displaying it in the sharing interface on the involved devices and by attaching it as an ex
2.
▲
by
okdana
6y ago
If by '99% coverage' you mean it can complete the command's options, and know which of them take arguments, and maybe even know about sub-commands, yes. zsh's _arguments, and its _gnu_generic wrapper, can do that — just
3.
▲
by
okdana
7y ago
What do you mean 'rewrite unlink'? As far as i know, none of the standard POSIX/C file-manipulation functions, including unlink(2), have ever supported NUL bytes embedded in file names. Path arguments to those functions are a
4.
▲
by
okdana
7y ago
As the other person said, if your scripts are executables with an sh or bash 'shebang' at the top, they will continue to use the same shell they always did. But if you did want to run them with zsh, most simple scripts that just
5.
▲
by
okdana
7y ago
I agree that zsh's default configuration sucks (and the new-user wizard is overwhelming). I would like the project to provide a more opinionated set of defaults to OS vendors; i think we are probably just nervous about breaking 30 year
6.
▲
by
okdana
7y ago
zsh doesn't require any 'plugins' for its tab-completion, everything you need is distributed with the shell. A lot of people who use zsh just don't understand how it works and think that OMZ/Prezto/whatever are
7.
▲
by
okdana
7y ago
Is that what they've done? The linked article doesn't say that.
8.
▲
by
okdana
7y ago
zsh isn't a perfect super-set of bash (there are some differences in syntax, provided built-ins, &c.), but it does have equivalents for most of bash's functionality. Off the top of my head i can't think of anything useful
9.
▲
by
okdana
8y ago
You probably don't need to update /etc/shells unless you really want to. chsh just won't let you switch to a shell that's not listed there without using sudo, which isn't a problem for most (generally single-us
10.
▲
by
okdana
8y ago
bash's EPOCHREALTIME was inspired by mksh, which was in turn inspired by zsh. And in zsh, EPOCHREALTIME was named after the system real-time clock (specifically the CLOCK_REALTIME clock ID passed to clock_gettime()). And i imagine tha
11.
▲
by
okdana
8y ago
Yeah, you're right of course. I think i was conflating job control with sub-shells, sorry.
12.
▲
by
okdana
8y ago
fish doesn't try to support all of the weird historical quirks of Bourne-style shells, so its grammar and built-in 'API' are far simpler and clearer. Its out-of-the-box configuration is much much nicer for most people than zs
13.
▲
by
okdana
8y ago
The problem with most of these lists and how-tos is that they're the CLI equivalent of 'I Fucking Love Science'. The people suggesting things like zsh frame-works rarely seem able to properly justify their use — they don'
14.
▲
by
okdana
8y ago
Right, it was just a random example that popped into my head. You would probably also want to think twice about using -R (at least with GNU grep), about hard-coding the search directory, &c. All of PHP's process-execution methods (
15.
▲
by
okdana
8y ago
>Simple trick behind this technique is that when using shell wildcards, especially asterisk (...), Unix shell will interpret files beginning with hyphen (-) character as command line arguments to executed command/program. To be clea
16.
▲
by
okdana
8y ago
How are you going to white-list network-interface names? On Linux at least you can name them almost anything you want: % sudo ip link set eth3 down % sudo ip link set eth3 name "'deal-with-it'" % sudo ip link sho
17.
▲
by
okdana
9y ago
>Also, if unions are not a direct, full frontal attack on capital and hierarchy, why are they facing constant attack from organs of ruling class consciousness, like, say, the WSJ, the Financial Times, or even other less explicit papers l
18.
▲
by
okdana
9y ago
>Shells like zsh and fish will never get mainstream adoption because they are not compatible with bash. zsh and fish don't really belong in the same comparison IMO. zsh is, like bash, a ksh-like shell with a Bourne-style grammar. Ob
19.
▲
by
okdana
9y ago
GREP_OPTIONS is deprecated in GNU grep since i think 2.20. It will be removed in a future version, and until then it's going to print an irritating warning message every time you use it. (I don't think there's any such plan f
20.
▲
by
okdana
9y ago
You can shorten it with -t: -tc, -tphp, -truby, -tsh. Then it's actually the same amount of characters as with ag.
21.
▲
by
okdana
9y ago
You can achieve that in almost any of these tools (including old-school grep) by matching against something with zero width, like this: grep '^|.*PLUGH.*'
22.
▲
by
okdana
9y ago
He has some videos that are commentated by voice, but for some reason he finds doing the recordings very stressful, so most of his content is unfortunately on his 'uncommentated' channel. I agree it would be nice to have the voice
23.
▲
by
okdana
9y ago
Related: A fun video that illustrates floating-point precision by way of Super Mario 64: https://youtu.be/9hdFG2GcNuA
24.
▲
by
okdana
9y ago
> There are good reasons to use Zsh beyond its autocomplete system... zsh also performs much better in practice than bash. Not only does it run the same code faster, it subsumes a great deal of functionality that normally requires extern
25.
▲
by
okdana
9y ago
I use heredocs for 'commenting out' code in shell scripts a lot. For example: : <<- 'NOOP' some code here NOOP In some languages there is a very slight performance impact to doing this, how
26.
▲
by
okdana
9y ago
I think the Swift language is great, but the tool chain (specifically `/usr/bin/swift` and `/usr/bin/swiftc`) is absolute garbage. The documentation is almost non-existent, its preferred method of 'handlin
27.
▲
by
okdana
9y ago
The question i have is why do users configure their terminals to use colours that are unreadable to them? If your blue doesn't look right on your dark background, why are you using that blue? If your yellow doesn't look right on y
28.
▲
by
okdana
9y ago
That doesn't seem like an especially compelling argument. There are components of every ready-made operating system that you 'don't need or want'. I don't need or want an IPv6 stack, or debugfs, or half of the oth
29.
▲
by
okdana
9y ago
You can use syslog in conjunction with the systemd journal. Some distributions come set up that way by default, and for the others you can just `apt-get install rsyslog` or whatever. When you have a syslog daemon installed, `tail -f` and ev
30.
▲
by
okdana
9y ago
I don't know of any that require it. But it's common to see punctuation characters escaped like that because Perl (and PCRE and its various cousins/descendants) allows you to escape any non-meta-character and have it treate
More ›