Skip to content

Instantly share code, notes, and snippets.

@jide
Created February 5, 2014 14:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jide/8824465 to your computer and use it in GitHub Desktop.
Save jide/8824465 to your computer and use it in GitHub Desktop.
STATUS=`defaults read com.apple.finder AppleShowAllFiles`
if [ $STATUS == YES ];
then
defaults write com.apple.finder AppleShowAllFiles NO
else
defaults write com.apple.finder AppleShowAllFiles YES
fi
killall Finder
open -a Finder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment