Lurker News

Comments (62) 14 threads

koenigdavidmj3 replies#
The last one of these that popped up on HN replaced a lot of the common UNIX commands, and a lot of people here rightly asked 'why would I run "mac tar:extract" when I could just run "tar xf"?'

This one seems to get the balance a lot more right, with a lot of things that the average OS X admin wouldn't know off the top of their head.
- 'm lock': That's a lot better than whichever arcane key combination does it by default (my laptop stays closed most of the time, so the power button isn't an option).
- 'm nosleep': I would have to look that one up.
- 'm finder showhiddenfiles': It beats Googling for the proper 'defaults write' invocation.

jonhohle#
My first impression was _gaah!_ just RTFM! But after calming down, I realized this is not significantly different from a command line version of TinkerTool. Not necessarily something I would use, but I could see an audience for it.
jzelinskie1 reply#
I think if you go to the Keychain, you can configure it to put an icon in the top right tray that you can click on to lock your computer. I often find myself accidentally moving my mouse to the top right corner of my Windows and Linux machines to lock them now.
ytjohn1 reply#
That is exactly what I do. I think that the combo I would normally try (Cmd+L) logs you out. I remember at one point trying to find the correct key combination, and the primary results were to put the lock icon up. That works find enough for me.
krrrh#
Defining a hot corner in the bottom left in trackpad prefs has been my go to for years. It works fast and is rarely activated by accident.
paxswill1 reply#
The basic command for keeping the machine awake is `caffeinate`, and has a few other nice options like changing what kind of sleep is prevented (disk, display, system) and also waiting on a PID (looks like that was added in 10.10).

Related to that is `pmset -g assertions` which will list all the various things that are keeping your machine from sleeping.

therealmarv1 reply#
strange, I always used `pmset noidle` instead of `caffeinate`. But seems it does the same. I somehow assumed `caffeinate` is the same as this app store thing called Caffeine.
paxswill1 reply#
Using `pmset noidle` is now deprecated in favor of `caffeinate` according to the pmset man page.

Continue this thread — 1 reply

ralfd1 reply#
It literally says on the github page of OP submission, that Mac-CLI was inspiration.

HNews discussion about it 3 weeks ago:
https://news.ycombinator.com/item?id=11977162
But I too wonder why I should use this instead of Mac-CLI?

rgcr#
I think @koenigdavidmj has the answer :)
nicolas_t#
I find that mac-cli is too unfocused with functions like ssh, tar, magento support, mysql support which are not really needed and common between platforms.

I like the exclusive focus of this tool to only mac administration tasks which are specific to mac OS X and that I would not know off the top of my head.

donretag2 replies#
I like how each function is contained in an individual plugin file. I can install (create a local script) which plugins I want without needing to install them all. Even if you do not want to install any of the code, it shows you the command line needed in OS X.

The volume plugin has a more fine-grained control for adjusting the volume. The keyboard based function keys will increase/decrease the volume by 6/7. Now I can increase by smaller increments. Excellent.

sn0v#
As an aside, holding down the option key on your Mac while adjusting the volume will do it in much smaller increments.
smnscu1 reply#
You can use Alt+Shift+VolumeUp/Down to change volume by quarters of an increment.
bigboat#
Karabiner allows you to change the default behavior of the volume keys to use quarter steps with the "Fine grained volume controls" option (it simply adds the alt+shift for you). Very useful with headphones that are too sensitive. https://pqrs.org/osx/karabiner/
legulere1 reply#
That something like this exists shows some problems with the unix shell: No standardized commands exist for many common actions (sleep, wifi, etc). The syntax is different across commands even on a single system.

It's really nice, but I'd like to see something like that as a standard in shells.

Scarbutt1 reply#
I don't know, CLI commands in os x are much worse than in linux, want to display wifi info?

$/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I
lots of useful commands like that are not in your path by default, that said, at least os x lets you modify almost any part of the system with shell commands.

SG-1 reply#
which airport

/usr/local/bin/airport

danbee1 reply#
Tried that on my Mac

$ which airport
airport not found

Continue this thread — 1 reply

Load more comments