Last active
September 24, 2018 17:47
-
-
Save ytzong/83b39c3dd6cc1cc3f4e1 to your computer and use it in GitHub Desktop.
一些常用的 Mac 脚本
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# App Store 开启 Degub 菜单 | |
defaults write com.apple.appstore ShowDebugMenu -bool true | |
# 开启充电提示音 | |
# defaults write com.apple.PowerChime ChimeOnAllHardware -bool true; open /System/Library/CoreServices/PowerChime.app & | |
# 关闭 | |
# defaults write com.apple.PowerChime ChimeOnAllHardware -bool false;killall PowerChime | |
# 修复 sabma 速度慢的问题 | |
printf '[default]\nsigning_required=no\n' | sudo tee /etc/nsmb.conf >/dev/null | |
# 显示资源库 | |
chflags nohidden ~/Library | |
# 显示文件后缀 | |
defaults write NSGlobalDomain AppleShowAllExtensions -bool true | |
# 禁用打开 app 提醒 | |
defaults write com.apple.LaunchServices LSQuarantine -bool false | |
# 删除CNNIC | |
sudo security delete-certificate -c "CNNIC ROOT" /System/Library/Keychains/SystemRootCertificates.keychain | |
# PopClip 扁平化 | |
defaults write com.pilotmoon.popclip NoGloss -bool YES | |
# QuickTime 自动播放 | |
defaults write com.apple.QuickTimePlayerX MGPlayMovieOnOpen 1 | |
echo "Avoid creating .DS_Store files on network volumes" | |
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true | |
echo "Disable the warning when changing a file extension" | |
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false | |
echo "Require password immediately after sleep or screen saver begins" | |
defaults write com.apple.screensaver askForPassword -int 1 | |
defaults write com.apple.screensaver askForPasswordDelay -int 0 | |
echo "Enable tap to click (Trackpad)" | |
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true | |
echo "Enable Safari’s debug menu" | |
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true | |
echo "Make Safari’s search banners default to Contains instead of Starts With" | |
defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false | |
echo "Make ⌘ + F focus the search input in iTunes" | |
defaults write com.apple.iTunes NSUserKeyEquivalents -dict-add "Target Search Field" "@F" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment