Our crew is replaceable. Your package isn't.

## macOS

##### Thu 11 June 2015

This is my main unix operating system I use daily. Listed here are a few things to make it more useful.

## macOS 10.11 El Captain, issues with Homebrew

sudo chown \$(whoami):admin /usr/local


You also need commandline tools and/or might need to point to them:

xcode-select --install
xcode-select --switch /Applications/Xcode.app


I installed the Beta version of Xcode 7 and for some reason had to switch the links to the real version.

## Show hidden files

defaults write com.apple.finder AppleShowAllFiles False/True


## Software Update

You can use the command line to update your macOS systems remotely:

softwareupdate --install

-l, --list List packages available
-i, --install arg

Install packages where arg can be:

 -a, --all All packages -r, --recommended Just the recommended packages

## macOS Fixes

Enable One-Finger Tap & Drag

Step 1: On your Mac, first open the Preferences panel. There, head to the Accessibility option as shown below.

Preferences

Preferences Accessibility

Step 2: On the left panel of the next window, scroll down and select the Mouse & Trackpad option. There, click on the Trackpad Options… button.

This will bring down an options panel.

Step 3: On this panel, you will notice an interesting option at the bottom named Enable dragging. Check it.

Preferences Enable Dragging

This option not only allows you to enable dragging on your Mac’s trackpad, but also lets you activate or deactivate drag lock (when enabled, this means that when you drag a window, you will have to perform one more click in order to deactivate the drag function).

And done! Now whenever you use your Mac’s trackpad, just double-tap on any ‘draggable’ area of a window to move it around.

## Stop Safari re-opening windows

Hold the shift key down and open Safari

defaults write com.apple.Safari ApplePersistenceIgnoreState YES
defaults write com.apple.Preview ApplePersistenceIgnoreState YES