feat: more prefs programatically

This commit is contained in:
James Walker 2020-01-26 20:08:46 -05:00
parent acf22b6a87
commit 9551dcaa49
Signed by: walkah
GPG Key ID: 3C127179D6086E93

View File

@ -1,4 +1,5 @@
#!/bin/sh
# Inspired by https://github.com/mathiasbynens/dotfiles/blob/master/.macos
# Dock settings
defaults write com.apple.dock 'orientation' -string 'left'
@ -6,8 +7,36 @@ defaults write com.apple.dock autohide -bool true
killall Dock
# Finder settings
# TODO: turn on stacks?
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true
defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true
defaults write com.apple.finder ShowMountedServersOnDesktop -bool true
defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true
killall Finder
# Safari
# Enable the Develop menu
defaults write -app Safari IncludeDevelopMenu -bool true
defaults write -app Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true
defaults write -app Safari WebKitPreferences.developerExtrasEnabled -bool true
# Disable AutoFill
defaults write -app Safari AutoFillFromAddressBook -bool false
defaults write -app Safari AutoFillPasswords -bool false
defaults write -app Safari AutoFillCreditCardData -bool false
defaults write -app Safari AutoFillMiscellaneousForms -bool false
# Mail
# TODO: notifications for contacts only
# TODO: disable sounds
# Sharing
# Turn on SSH
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
# TODO: turn on VNC?
# iTerm 2
# Specify the preferences directory
defaults write com.googlecode.iterm2.plist PrefsCustomFolder -string "~/SynologyDrive/Config/iTerm/"
# Tell iTerm2 to use the custom preferences in the directory
defaults write com.googlecode.iterm2.plist LoadPrefsFromCustomFolder -bool true