Mac 常用资源
转载 yansu的bolg
常用软件
Alfred
Alfred常用Workflow
常用命令
开启关闭dashboard
关闭
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
开启关闭Hidpi
开启
sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool YES
关闭
sudo defaults delete /Library/Preferences/com.apple.windowserver DisplayResolutionDisabled ### Finder 标题栏显示完整路径
defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
修改 Dock 隐藏和出现时间
defaults write com.apple.dock autohide-delay -int 0
defaults write com.apple.dock autohide-time-modifier -float 0.4
killall Dock
设置 iterm 中 option 为alt(meta)键
删除 dropbox 冲突文件
find . -type f -name "* conflicted *" -exec rm -f {} \;
清空Launchpad(删除掉)
sqlite3 ~/Library/Application\ Support/Dock/*.db 'DELETE FROM apps;' && killall Dock
重置Launchpad
rm -f ~/Library/Application\ Support/Dock/*.db && killall Dock
修改 Finder 中文件夹显示语言
# 以 Desktop 为例
touch ~/Desktop/.localized
chmod 600 ~/Desktop/.localized
常用快捷键
Chrome
- 切换用户
Command + shift + M
既已览卷至此,何不品评一二: