#!/usr/bin/env fish source "$DOT/script/utils.fish" # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - print_subtitle "App Store" execute "defaults write com.apple.commerce AutoUpdate -bool true" \ "Turn on auto-update" execute "defaults write com.apple.SoftwareUpdate AutomaticCheckEnabled -bool true" \ "Enable automatic update check" execute "defaults write come.apple.SoftwareUpdate AutomaticDownload -int 1" \ "Download newly available updates in background" execute "defaults write com.apple.SoftwareUpdate CriticalUpdateInstall -int 1" \ "Install system data files and security updates" execute "defaults write com.apple.SoftwareUpdate ConfigDataInstall -int 1" \ "Automatically download apps purchased on other Macs" killall "App Store" &>/dev/null