Last active
October 11, 2019 14:05
-
-
Save tcodes0/8ea529dceeabc7454eb2c2ca1c78efcf to your computer and use it in GitHub Desktop.
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
# paste code into bash/zsh | |
hidedesktop() { | |
local state && state=$(defaults read com.apple.finder CreateDesktop) | |
if [ "$state" == "true" ]; then | |
defaults write com.apple.finder CreateDesktop false | |
else | |
defaults write com.apple.finder CreateDesktop true | |
fi | |
killall Finder | |
} | |
# > hidedesktop // hides icons | |
# > hidedesktop // shows icons |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment