删除 Mac OS 10.10 中“打开方式”里重复或无用的程序列表

/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user

此命令的作用是重建 LaunchServices 的数据库,这样重复或无效的项目就会被清理掉了。