From 10946326a17509ce7f57d2bd2651b3bb4bf10a52 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sat, 15 Aug 2015 20:13:42 +0100 Subject: [PATCH] Add shell alias for disabling cmd+ctrl+d global hotkey in osx --- shell/aliases.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/shell/aliases.sh b/shell/aliases.sh index 0cda281..2ba85c6 100644 --- a/shell/aliases.sh +++ b/shell/aliases.sh @@ -43,6 +43,15 @@ alias fku="fuck you" alias fix_wifi="sudo ifconfig awdl0 down" alias unfix_wifi="sudo ifconfig awdl0 up" +# Disable the system built-in cmd+ctrl+d global hotkey to lookup word in +# dictionary on OS X. Must reboot after running. +# - from: ://apple.stackexchange.com/a/114269 +osx-disable-lookup-word-hotkey() { + defaults write com.apple.symbolichotkeys AppleSymbolicHotKeys -dict-add 70 \ + 'enabled' + echo "Command-Control-D hotkey disabled. Please reboot to take effect." +} + # Improved myip alias. Echoed to avoid strange character at end in ZSH. function myip { echo "$(curl -s whatismyip.akamai.com)"