Skip to content

Instantly share code, notes, and snippets.

@wancw
Last active December 27, 2023 10:22
Show Gist options
  • Save wancw/9f9c5ce49eb9b0503801d4cbd9dedec2 to your computer and use it in GitHub Desktop.
Save wancw/9f9c5ce49eb9b0503801d4cbd9dedec2 to your computer and use it in GitHub Desktop.
One-liner to enable "press to repeat" on macOS for all JetBrains IDEs
# ripgrep is required
codesign -dr - ~/Applications/*.app 2>&1 \
| rg --pcre2 -o '(?<=identifier ")com.jetbrains[^"]+(?=")' \
| xargs -L 1 -I _ defaults read _ ApplePressAndHoldEnabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment