Skip to content

advanced

Finder > Settings > Advanced > Remove items from the Trash after 30 days

Option Module: home-manager

Option Path: applications.finder.settings.advanced.removeItemsFromTheTrashAfter30Days

Option Value Description: null or boolean or value "unset" (singular enum)

false:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/com.apple.finder FXRemoveOldTrashItems -bool "false" 2>/dev/null || true

true:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/com.apple.finder FXRemoveOldTrashItems -bool "true" 2>/dev/null || true

unset:

Terminal window
/usr/bin/defaults delete ~/Library/Preferences/ByHost/com.apple.finder FXRemoveOldTrashItems 2>/dev/null || true

Finder > Settings > Advanced > Show all filename extensions

Option Module: home-manager

Option Path: applications.finder.settings.advanced.showAllFilenameExtensions

Option Value Description: null or boolean or value "unset" (singular enum)

false:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/.GlobalPreferences AppleShowAllExtensions -bool "false" 2>/dev/null || true

true:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/.GlobalPreferences AppleShowAllExtensions -bool "true" 2>/dev/null || true

unset:

Terminal window
/usr/bin/defaults delete ~/Library/Preferences/.GlobalPreferences AppleShowAllExtensions 2>/dev/null || true

Finder > Settings > Advanced > Show warning before changing an extension

Option Module: home-manager

Option Path: applications.finder.settings.advanced.showWarningBeforeChangingAnExtension

Option Value Description: null or boolean or value "unset" (singular enum)

false:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/com.apple.finder FXEnableExtensionChangeWarning -bool "false" 2>/dev/null || true

true:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/com.apple.finder FXEnableExtensionChangeWarning -bool "true" 2>/dev/null || true

unset:

Terminal window
/usr/bin/defaults delete ~/Library/Preferences/ByHost/com.apple.finder FXEnableExtensionChangeWarning 2>/dev/null || true

Finder > Settings > Advanced > Show warning before emptying the Trash

Option Module: home-manager

Option Path: applications.finder.settings.advanced.showWarningBeforeEmptyingTheTrash

Option Value Description: null or boolean or value "unset" (singular enum)

false:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/com.apple.finder WarnOnEmptyTrash -bool "false" 2>/dev/null || true

true:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/com.apple.finder WarnOnEmptyTrash -bool "true" 2>/dev/null || true

unset:

Terminal window
/usr/bin/defaults delete ~/Library/Preferences/ByHost/com.apple.finder WarnOnEmptyTrash 2>/dev/null || true

Show warning before removing from iCloud Drive

Section titled “Show warning before removing from iCloud Drive”

Finder > Settings > Advanced > Show warning before removing from iCloud Drive

Option Module: home-manager

Option Path: applications.finder.settings.advanced.showWarningBeforeRemovingFromiCloudDrive

Option Value Description: null or boolean or value "unset" (singular enum)

false:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/com.apple.bird FXEnableExtensionChangeWarning -bool "true" 2>/dev/null || true

true:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/com.apple.bird FXEnableExtensionChangeWarning -bool "false" 2>/dev/null || true

unset:

Terminal window
/usr/bin/defaults delete ~/Library/Preferences/ByHost/com.apple.bird FXEnableExtensionChangeWarning 2>/dev/null || true

Finder > Settings > Advanced > When performing a search

Option Module: home-manager

Option Path: applications.finder.settings.advanced.whenPerformingASearch

Option Value Description: null or one of "Search This Mac", "Search the Current Folder", "Use the Previous Search Scope", "unset"

Search This Mac:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/com.apple.finder FXDefaultSearchScope -string "SCev" 2>/dev/null || true

Search the Current Folder:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/com.apple.finder FXDefaultSearchScope -string "SCcf" 2>/dev/null || true

Use the Previous Search Scope:

Terminal window
/usr/bin/defaults write ~/Library/Preferences/ByHost/com.apple.finder FXDefaultSearchScope -string "SCsp" 2>/dev/null || true

unset:

Terminal window
/usr/bin/defaults delete ~/Library/Preferences/ByHost/com.apple.finder FXDefaultSearchScope 2>/dev/null || true