Skip to content

Instantly share code, notes, and snippets.

@mmcalli
mmcalli / macOS.sh
Last active February 10, 2021 19:44
Example macOS configuration
#!/usr/bin/env bash
# Derived from Mathias Bynens' macos preferences
# Close any open System Preferences panes, to prevent them from overriding
# settings we’re about to change
osascript -e 'tell application "System Preferences" to quit'
# Ask for the administrator password upfront
sudo -v
<!DOCTYPE html>
<meta charset="utf-8">
Hello, world!
gistup