From e12eaab15a68f3c0dadb29c6e948e97c6ada6e83 Mon Sep 17 00:00:00 2001 From: James Spencer Date: Sun, 1 Oct 2023 21:18:29 +0100 Subject: [PATCH] feat: more goodies --- scripts/Caskfile | 3 ++- scripts/install-homebrew.sh | 1 + scripts/set-mac-defaults.sh | 26 ++++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/scripts/Caskfile b/scripts/Caskfile index 4b51f5b..0b30550 100644 --- a/scripts/Caskfile +++ b/scripts/Caskfile @@ -10,4 +10,5 @@ iterm2 licecap obsidian raycast -webex +slack +font-fira-code diff --git a/scripts/install-homebrew.sh b/scripts/install-homebrew.sh index 47c0dc5..64db953 100755 --- a/scripts/install-homebrew.sh +++ b/scripts/install-homebrew.sh @@ -26,6 +26,7 @@ echo "Finished setting up zsh as default shell" echo "Installing Homebrew casks..." echo +brew tap caskroom/fonts brew tap homebrew/cask-versions cat Caskfile | xargs brew install --cask echo diff --git a/scripts/set-mac-defaults.sh b/scripts/set-mac-defaults.sh index 43d5ecd..a246d61 100755 --- a/scripts/set-mac-defaults.sh +++ b/scripts/set-mac-defaults.sh @@ -2,6 +2,10 @@ echo "Setting macOS defaults..." echo +# 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' + # Always open everything in Finder's list view defaults write com.apple.Finder FXPreferredViewStyle Nlsv @@ -29,5 +33,27 @@ defaults write com.apple.screencapture location -string "${HOME}/Documents/Scree # Don’t display the annoying prompt when quitting iTerm defaults write com.googlecode.iterm2 PromptOnQuit -bool false +# Save to disk (not to iCloud) by default +defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false + +# Finder: show all filename extensions +defaults write NSGlobalDomain AppleShowAllExtensions -bool true + +# Remove the auto-hiding Dock delay +defaults write com.apple.dock autohide-delay -float 0 + +# Disable the “Are you sure you want to open this application?” dialog +defaults write com.apple.LaunchServices LSQuarantine -bool false + +# Minimize windows into their application’s icon +defaults write com.apple.dock minimize-to-application -bool true + +# Disable smart quotes and smart dashes +defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false +defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false + +# Disable auto-correct +defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false + echo "Finished setting macOS defaults." echo