Skip to content

Instantly share code, notes, and snippets.

@khsing khsing/ Secret
Last active Oct 8, 2015

What would you like to do?
# curl | bash
# "Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs)"
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
# Allow Finder quit.
defaults write QuitMenuItem -bool true
echo "Allow quitting Finder via ⌘ + Q; doing so will also hide desktop icons"
defaults write QuitMenuItem -bool true
# Disable window animations and Get Info animations in Finder
# defaults write DisableAllAnimations -bool true
echo "Show all filename extensions in Finder"
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
echo "Use current directory as default search scope in Finder"
defaults write FXDefaultSearchScope -string "SCcf"
echo "Show Path bar in Finder"
defaults write ShowPathbar -bool true
echo "Show Status bar in Finder"
defaults write ShowStatusBar -bool true
echo "Expand save panel by default"
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
echo "Expand print panel by default"
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
echo "Disable the “Are you sure you want to open this application?” dialog"
defaults write LSQuarantine -bool false
echo "Enable AirDrop over Ethernet and on unsupported Macs running Lion"
defaults write BrowseAllInterfaces -bool true
echo "Display full POSIX path as Finder window title"
defaults write _FXShowPosixPathInTitle -bool true
echo "Avoid creating .DS_Store files on network volumes"
defaults write DSDontWriteNetworkStores -bool true
echo "Disable the warning when changing a file extension"
defaults write FXEnableExtensionChangeWarning -bool false
echo "Disable Safari’s thumbnail cache for History and Top Sites"
defaults write DebugSnapshotsUpdatePolicy -int 2
echo "Enable Safari’s debug menu"
defaults write IncludeInternalDebugMenu -bool true
echo "Make Safari’s search banners default to Contains instead of Starts With"
defaults write FindOnPageMatchesWordStartsOnly -bool false
echo "Only use UTF-8 in"
defaults write StringEncodings -array 4
echo "Make ⌘ + F focus the search input in iTunes"
defaults write NSUserKeyEquivalents -dict-add "Target Search Field" "@F"
echo "Disable the “reopen windows when logging back in” option"
# This works, although the checkbox will still appear to be checked.
defaults write TALLogoutSavesState -bool false
defaults write LoginwindowLaunchesRelaunchApps -bool false
echo "Show the ~/Library folder"
chflags nohidden ~/Library
#This disable shadow when capture a window
defaults write disable-shadow -bool true
killall SystemUIServer
echo "Disable local Time Machine backups"
hash tmutil &> /dev/null && sudo tmutil disablelocal
echo "Change Default Simplied Chinese font fallback"
plutil -convert xml1 -o - /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/Resources/DefaultFontFallbacks.plist | sed 's/STKaiti/STKaiti-SC-Regular/g;s/STSong/STSongti-SC-Regular/g;s/STHeitiSC-Light/HiraginoSansGB-W3/g' | sudo plutil -convert binary1 -o /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/Resources/DefaultFontFallbacks.plist -
echo "Display system stats, such as OS version and build number, IP address."
sudo defaults write /Library/Preferences/ AdminHostInfo HostName
echo "If Path Finder is installed, set default Finder as Path Finder"
if [ -d "/Applications/Path" ];then
defaults write Finder /Applications/Path\
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.