Last active
August 1, 2016 14:22
-
-
Save melvinsh/0a015d0735f21fdece873309832532e6 to your computer and use it in GitHub Desktop.
macOS settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Enabling three-finger drag ..." | |
defaults write com.apple.AppleMultitouchTrackpad TrackpadThreeFingerDrag -bool true | |
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadThreeFingerDrag -bool true | |
echo "Enabling dark mode ..." | |
brew install dark-mode | |
dark-mode --mode Dark | |
echo "Unhiding Library in Finder ..." | |
chflags nohidden ~/Library | |
echo "Disabling Desktop icons (AKA force clean Desktop) ..." | |
defaults write com.apple.finder CreateDesktop -bool false | |
echo "Setting Default Finder Location to Home Folder ..." | |
defaults write com.apple.finder NewWindowTarget -string "PfLo" && \ | |
defaults write com.apple.finder NewWindowTargetPath -string "file://${HOME}" | |
echo "Enabling iOS charging sound when MagSafe is connected ..." | |
defaults write com.apple.PowerChime ChimeOnAllHardware -bool true && \ | |
open /System/Library/CoreServices/PowerChime.app | |
echo "Disabling autocorrect ..." | |
defaults write -g NSAutomaticSpellingCorrectionEnabled -bool false | |
echo "Disabling Sound Effects on Boot ..." | |
sudo nvram SystemAudioVolume=" " | |
echo "Enabling Firewall ..." | |
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate on | |
echo "Setting screensaver to lock immediately ..." | |
defaults write com.apple.screensaver askForPasswordDelay -int 0 | |
echo "Starting locate database building service ..." | |
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist | |
echo "Disabling AirDrop ..." | |
defaults write com.apple.NetworkBrowser DisableAirDrop -bool YES | |
echo "Done! Reloading Finder ..." | |
killall Finder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment