Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 14799

defaults(1) is a macOS console application used to manage user preferences stored in property list files.

4 votes
Accepted

How to set system keyboard shortcuts via command line?

You have to add the application you want to modify keys for to com.apple.universalaccess. defaults write com.apple.universalaccess com.apple.custommenu.apps -array-add "com.googlecode.iterm2" or if all … "com.google.Chrome" The other thing that was tricky was, that my iterm2 prefs file is symlinked and therefore doesn't appear in the list of domains nor is read with the defaults tool. …
Karsten S.'s user avatar
6 votes
1 answer
3k views

How to set system keyboard shortcuts via command line?

What was working in the past (High Sierra if I'm not mistaken) was something like this: defaults write com.googlecode.iterm2 NSUserKeyEquivalents -dict-add "Advanced Paste…" -string "@~^v" Running defaults … I also tried defaults write -app iTerm ... but it has the exact same effect. Did anything change on (at least) Catalina? What's the correct way nowadays to do it? …
Karsten S.'s user avatar