Created
May 12, 2020 03:38
-
-
Save ckinsey/6a2e123fa77b8192b9167661be2bcaf8 to your computer and use it in GitHub Desktop.
bathtub.sh
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/bash | |
# friday.hirelofty.com | |
on="1" | |
if [ $1 -eq $on ] | |
then | |
echo "Removing desktop icons and restarting finder" | |
defaults write com.apple.finder CreateDesktop false | |
killall Finder | |
else | |
echo "Restoring desktop icons and restarting finder" | |
defaults write com.apple.finder CreateDesktop true | |
killall Finder | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment