Zend certified PHP/Magento developer

Is it possible to set the default iTerm profile using CLI?

I’m trying to write a MacOS provisioning script for iTerm2 which will (1) load in a dynamic profile and (2) set it to use as the default profile.

Loading the profile is just a matter of putting it in the ~/Library/Application Support/iTerm2/DynamicProfiles. Setting that profile to be the default is a bit more tricky.

I see that the Python API exposes a way to update the default profile, but I was hoping to be able to use the com.googlecode.iterm2 plist. I see there is a Default Bookmark Guid plist entry, but setting that seems to have no effect.

Has anybody done this? Again my goal is to have zero user interaction in order to specify the default profile.