常用软件
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
修改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