Live data from Hacker News

Mac CLI – OS X command line tools for developers

github.com

61–70 of 75 posts

Re: Mac CLI – OS X command line tools for developers

#61

I would suggest another command. Instead of "XXX:extract" I use my little shell script, which runs correct unarchiver basing on the file name (or series of unarchivers for common cases like .tar.gz). So you don't have to memorise every command out there. Another useful functionality is to create a separate directory, if archive contains multiple "root" files, so the current directory won't be polluted by the bad arch…

That is great! Could you create a Github Issue to move forward with that?

Re: Mac CLI – OS X command line tools for developers

#63
post #11

I would advise finding another name for the tool. 'mac' is an obvious trademark infringement and it's only a matter of time before Apple lawyers come knocking on your door. Honestly I find it uncool to piggyback on someone else's brand in this way. The protagonists are different but it's the same fundamental issue as the "Ubuntu vs OVH" and "Let's Encrypt vs Comodo" stories we've seen recently.

There is other non-Apple software that has been happily using "mac" in its name for a long time, no? Everybody knows MacPorts, and there's Mactracker and MacCleanse on the App Store itself, and the infamous Mackeeper (which may very well be malware; Apple should go after them first) and companies: MacPhun and MacPaw. But I guess people may confuse "Mac CLI" as being an official part of macOS.

Apple provides support and funding to Mac ports when I last checked.

Re: Mac CLI – OS X command line tools for developers

#64
post #52

What's so wrong with the regular command line commands for most of this?

Well, would you rather remember: `sudo shutdown -r now` or `mac shutdown`? Would you rather remember: `pmset sleepnow` or `mac restart`?

Why not just do `man shutdown` to figure out the option you should use, and then either set it up with an alias or just learn it permanently with repetition?

Re: Mac CLI – OS X command line tools for developers

#65
post #52

Earlier quoted context omitted.

Well, would you rather remember: `sudo shutdown -r now` or `mac shutdown`? Would you rather remember: `pmset sleepnow` or `mac restart`?

Is there complementary `linux shutdown` and `freebsd shutdown` and `solaris shutdown`? If no, then this utility only increases cognitive load.

then this utility only increases cognitive load.

how in the world does it 'increase cognitive load'? Seems like its just your opinion. I know how to shut down a generic linux box. But mac shutdoown or mac reboot is still easier to type and remember.

Re: Mac CLI – OS X command line tools for developers

#67

What's so wrong with the regular command line commands for most of this?

I agree. It did inspire me to write this however, which I desperately needed for a long time:

alias eject="hdiutil info | gawk '/^\/dev\/disk([0-9]*)\>/ { system(\"hdiutil detach \" \$1) }'"

Re: Mac CLI – OS X command line tools for developers

#68
Please, everyone, stop forcing HomeBrew as a dependency.

HomeBrew screws with your systems file permissions and installs directly into the standard system directories.

MacPorts (https://www.macports.org/) is at least a good, and it installs into the /opt tree, staying out of the way of anything Apple or Darwin wants to do when updating or patching your system.

Don't like MacPorts? There's always Fink (http://www.finkproject.org/), which installs into /sw and looks like Debian (i.e. apt-get).

HomeBrew seems like the worst of the three. :-(

Post reply on HN