summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhineng Li <[email protected]>2026-01-08 10:27:47 +0800
committerZhineng Li <[email protected]>2026-01-08 10:27:47 +0800
commit1c3d88c05886681e74c2a8fc861d6167d25a6135 (patch)
treeb4b03bd2cddcbc957218b45d5e55e82070b9181b
parentc00a341f26d268589943c0de0be7aa74a1969167 (diff)
configure Safari
-rwxr-xr-x.macos24
1 files changed, 24 insertions, 0 deletions
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