How to set system keyboard shortcuts via command line?
I was used to set up a new machine using a couple of `defaults write`.
I'm setting up a new Catalina MBP right now and my setup for keyboard shortcuts doesn't work anymore.
For instance, if I run
defaults write com.googlecode.iterm2 NSUserKeyEquivalents -dict-add "Advanced Paste…" -string "@~^v"
I can use
defaults read com.googlecode.iterm2 NSUserKeyEquivalents
to see it has been set, but it's not visible in System preferences, nor in the app's menu nor does it work.
When I delete this key and add it manually via system preferences, the above command gives the exact same result, but it's working.
How can I set up those keyboard shortcuts (global and app specific) on Catalina?
PS: Using
defaults write -app iTerm ...
doesn't work either and the same holds for any app I tried (Safari, Chrome, etc.)