Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save htaketani/631bf391c1c7776e83fd19b7f9293f21 to your computer and use it in GitHub Desktop.

Select an option

Save htaketani/631bf391c1c7776e83fd19b7f9293f21 to your computer and use it in GitHub Desktop.
Mac Setting: Disable opening Mac Mail by Command-Shift-I shortcut key in Chrome
#!/bin/sh
# Mac Setting: Disable opening Mac Mail by Command-Shift-I shortcut key in Chrome
# Mac設定: Chromeで Command-Shift-I ショートカットキー により Macメールが起動しないようにする
# ref: [keyboard \- How to prevent Command\-I/Command\-Shift\-I from opening Mac Mail when in browser? \- Ask Different](https://apple.stackexchange.com/questions/108060/how-to-prevent-command-i-command-shift-i-from-opening-mac-mail-when-in-browser?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa)
# kill Chrome
killall 'Google Chrome'
# set config
defaults write com.google.Chrome NSUserKeyEquivalents -dict-add 'Email Page Location' '\0'
# clears the preferences cache
killall cfprefsd
# restarts the Finder
killall Finder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment