Live data from Hacker News

Mac CLI – OS X command line tools for developers

github.com

71–75 of 75 posts

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

#71
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`?

sudo shutdown -r now.

1) It's already muscle memory.

2) It's not hard.

3) Other *nix OSs use is too.

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

#73
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`?

FWIW, I was installing Ubuntu and had an issue with Unity, so had to use tty to update and hadn't ever shut down from the command line before. It just took me one try of 'shutdown' and a quick look at the man page to figure out what options were needed.

I see this as either being used frequently enough to be easily memorized, or infrequently enough that a quick check of the man page is fine. The real benefit is that it's a very general solution that works on basically any system, and for a wide variety of commands. As another commentor pointed out, the apropos command makes this strategy even more powerful.

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

#74

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.f…

i've been using homebrew since, like, lion and never had major issues. it also always worked across major and minor mac os upgrades. the things it does in /usr/local don't interfere with mac os.

in contrast, i somehow couldn't manage to efficiently use macports and fink.

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

#75
post #2

As a seasoned dev on OS X I'm not sure if I see the benefits here. You get the same set of instructions but lose (or rather, don't gain, as a beginner) the chance to use google-fu.

Thanks for your comment. I will be updating the code to add modularity in addition of improvements to make it easier to use and extend.

That would be great! I would love to have some mac specific commands, but I don't care for the lamp/magento/git commands.

Is there a way to install only the dependencies that one cares about?

Post reply on HN