# 在Mac的 Dock/程序坞 中隐藏/显示软件的命令 像`iTerm2`这类软件,如果能在Dock中藏起来,仅用快捷键呼来唤去,[会显得非常有情怀](https://www.jianshu.com/p/83c38271b09c)。 然而隐藏之后程序同时没有菜单,设置都没法设置了,所以切换命令还是要的: ``` # 隐藏 /usr/libexec/PlistBuddy -c "Add :LSUIElement bool true" /Applications/iTerm.app/Contents/Info.plist # 显示 /usr/libexec/PlistBuddy -c "Delete :LSUIElement" /Applications/iTerm.app/Contents/Info.plist ``` 执行完重启程序看效果。