mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
Add shell alias for disabling cmd+ctrl+d global hotkey in osx
This commit is contained in:
@@ -43,6 +43,15 @@ alias fku="fuck you"
|
|||||||
alias fix_wifi="sudo ifconfig awdl0 down"
|
alias fix_wifi="sudo ifconfig awdl0 down"
|
||||||
alias unfix_wifi="sudo ifconfig awdl0 up"
|
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 \
|
||||||
|
'<dict><key>enabled</key><false/></dict>'
|
||||||
|
echo "Command-Control-D hotkey disabled. Please reboot to take effect."
|
||||||
|
}
|
||||||
|
|
||||||
# Improved myip alias. Echoed to avoid strange character at end in ZSH.
|
# Improved myip alias. Echoed to avoid strange character at end in ZSH.
|
||||||
function myip {
|
function myip {
|
||||||
echo "$(curl -s whatismyip.akamai.com)"
|
echo "$(curl -s whatismyip.akamai.com)"
|
||||||
|
|||||||
Reference in New Issue
Block a user