Skip to content

Instantly share code, notes, and snippets.

@idle-z
Created June 24, 2023 10:28
Show Gist options
  • Save idle-z/7fc3d3950b02c441ab522a094e5f4350 to your computer and use it in GitHub Desktop.
Save idle-z/7fc3d3950b02c441ab522a094e5f4350 to your computer and use it in GitHub Desktop.
sudo scutil --set ComputerName $HOSTNAME
sudo scutil --set HostName $HOSTNAME
/usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
/usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:arrangeBy grid" ~/Library/Preferences/com.apple.finder.plist
mkdir -p "${HOME}/Pictures/Screenshots"
defaults write com.apple.screencapture "location" -string "${HOME}/Picures/Screenshots"
defaults write com.apple.screencapture "type" -string "png"
defaults write com.apple.desktopservices "DSDontWriteNetworkStores" -bool "true"
defaults write com.apple.finder "QLEnableTextSelection" -bool "true"
defaults write "Apple Global Domain" "_HIHideMenuBar" "1"
defaults write NSGLobalDomain "AppleInterfaceStyle" -string "Dark"
defaults write NSGLobalDomain "AppleShowAlExtensions" -bool "true"
defaults write NSGlobalDomain "AppleShowAllFiles" -bool "true"
defaults write NSGlobalDomain "NSAutomaticCapitalizationEnabled" -bool "false"
defaults write NSGLobalDomain "NSAutomaticDashSubstitutionEnabled" -bool "false"
defaults write NSGlobalDomain "NSAutomaticPeriodSubstitutionEnabled" -bool "false"
defaults write NSGlobalDomain "NSAutomaticQuoteSubstitutionEnabled" -bool "false"
defaults write NSGlobalDomain "NSAutomaticSpellingCorrectionEnabled" -bool "false"
defaults write NSGLobalDomain "NSNavPanelExpandedStateForSaveMode" -bool "true"
defaults write NSGlobalDomain "PMPrintingExpandedStateForPrint" -bool "true"
defaults write NSGlobalDomain "PMPrintingExpandedStateForPrint2" -bool "true"
defaults write NSGlobalDomain "ApplePressAndHoldEnabled" -bool "false"
defaults write NSGlobalDomain "WebKitDeveloperExtras" -bool "true"
defaults write com.apple.mouse.scaling -integer -1
defaults write com.apple.dock "autohide" -bool "true"
defaults write com.apple.dock "autohide-delay" -float "0.01"
defaults write com.apple.dock "autohide-time-modifier" -float "0.01"
defaults write com.apple.dock "mru-spaces" -bool "false"
defaults write com.apple.dock "static-only" -bool "true"
defaults write com.apple.dock "tilesize" -int "48"
defaults write com.apple.LaunchServices "LSQuarantine" -bool "false"
defaults write com.apple.finder "AppleShowAllExtensions" -bool "true"
defaults write com.apple.finder "AppleShowAllFiles" -bool "true"
defaults write com.apple.finder "CreateDesktop" -bool "false"
defaults write com.apple.finder "DisableAllAnimations" -bool true
defaults write com.apple.finder "FXDefaultSearchScope" -string "SCef"
defaults write com.apple.finder "FXEnableExtensionChangeWarning" -bool "false"
defaults write com.apple.finder "FXPreferredViewStyle" -string "clmv"
defaults write com.apple.finder "FXRemoveOldTrashItems" -bool "true"
defaults write com.apple.finder "ShowPathbar" -bool "true"
defaults write com.apple.finder "ShowStatusBar" -bool "true"
defaults write com.apple.finder "_FXSortFoldersFirst" -bool "true"
defaults write com.apple.TextEdit "RichText" -bool "false"
defaults write com.apple.TimeMachine "DoNotOfferNewDisksForBackup" -bool "true"
defaults write com.apple.mail "AddressesIncludeNameOnPasteboard" -bool "false"
defaults write com.apple.Safari "IncludeDevelopMenu" -bool "true"
defaults write com.apple.Safari "WebKitDeveloperExtrasEnabledPreferenceKey" -bool "true"
defaults write com.apple.Safari "com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled" -bool "true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment