layout: post title: Mac 常用资源 category: 资源 tags: Mac keywords: Mac
关闭
defaults write com.apple.dashboard mcx-disabled -boolean YES
killall Dock
开启
defaults write com.apple.dashboard mcx-disabled -boolean NO
killall Dock
写入剪切板
echo 'test' > pbcopy
cat testfile > pbcopy
读取剪贴板
pbpaste > testfile
pbpaste | cat
开启
sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool YES
关闭
sudo defaults delete /Library/Preferences/com.apple.windowserver DisplayResolutionDisabled
defaults write com.apple.dock autohide-delay -int 0
defaults write com.apple.dock autohide-time-modifier -float 0.4
killall Dock
find . -type f -name "* conflicted *" -exec rm -f {} \;
sqlite3 ~/Library/Application\ Support/Dock/*.db 'DELETE FROM apps;' && killall Dock
rm -f ~/Library/Application\ Support/Dock/*.db && killall Dock
# 以Desktop为例
touch ~/Desktop/.localized
chmod 600 ~/Desktop/.localized
Command + shift + M