From 1c3d88c05886681e74c2a8fc861d6167d25a6135 Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Thu, 8 Jan 2026 10:27:47 +0800 Subject: configure Safari --- .macos | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.macos b/.macos index 00c14b9..799a764 100755 --- a/.macos +++ b/.macos @@ -151,6 +151,30 @@ defaults write com.apple.Siri VoiceTriggerUserEnabled -bool FALSE # Safari ######################################################################### +# Do not close tabs automatically +defaults write com.apple.Safari CloseTabsAutomatically -int 0 + +# Remove history items manually +defaults write com.apple.Safari HistoryAgeInDaysLimit -int 365000 + +# Command-click opens a new tab +defaults write com.apple.Safari CommandClickMakesTabs -bool TRUE + +# Use Command-1 through Command-9 to switch tabs +defaults write com.apple.Safari Command1Through9SwitchesTabs -bool TRUE + +# Search with DuckDuckGo +defaults write com.apple.Safari SearchProviderShortName DuckDuckGo + +# Private Browsing uses the same search engine as normal browsing +defaults write com.apple.Safari PrivateSearchEngineUsesNormalSearchEngineToggle -bool TRUE + +# Warn before connecting to a website over HTTP +defaults write com.apple.Safari UseHTTPSOnly -bool TRUE + +# Disable ad measurement +defaults write com.apple.Safari WebKitPreferences.privateClickMeasurementEnabled -bool FALSE + # Show full website address defaults write com.apple.Safari ShowFullURLInSmartSearchField -bool TRUE -- cgit v1.2.3