Created
April 4, 2014 13:43
-
-
Save bg5sbk/9974976 to your computer and use it in GitHub Desktop.
Disable or enable dashboard on Mac OS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ ! $# -eq 1 ]; then | |
echo "How To Use:" >&2 | |
echo " ./dashboard.sh [enable|disable]" >&2 | |
exit | |
fi | |
if [ $1 == 'enable' ]; then | |
X='No' | |
elif [ $1 == 'disable' ]; then | |
X='Yes' | |
else | |
echo "How To Use:" >&2 | |
echo " ./dashboard.sh [enable|disable]" >&2 | |
exit | |
fi | |
defaults write com.apple.dashboard mcx-disabled -bool $X | |
killall Dock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment