Create a gist now

Instantly share code, notes, and snippets.

Toggle invisible files in OS X
if [ `defaults read com.apple.finder AppleShowAllFiles` == 1 ]
then
defaults write com.apple.finder AppleShowAllFiles -bool false
else
defaults write com.apple.finder AppleShowAllFiles -bool true
fi
killall Finder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment