macOS: How to remove iTerm2 from the dock
As I tend to use iTerm2 only with shortcuts, I always need to remove it from the dock after any update.
To remove, simply run:
/usr/libexec/PlistBuddy -c 'Add :LSUIElement bool true' /Applications/iTerm.app/Contents/Info.plist
If you want to undo:
/usr/libexec/PlistBuddy -c 'Delete :LSUIElement' /Applications/iTerm.app/Contents/Info.plist
Just like that!
Originally published on MEDIUM