Skip to content

Instantly share code, notes, and snippets.

@stanosmith
Created December 23, 2014 22:31
Show Gist options
  • Save stanosmith/42aab781adf377e71779 to your computer and use it in GitHub Desktop.
Save stanosmith/42aab781adf377e71779 to your computer and use it in GitHub Desktop.
is_shown=$(defaults read com.apple.finder AppleShowAllFiles)
if [ $is_shown != "YES" ]; then
defaults write com.apple.finder AppleShowAllFiles TRUE
else
defaults write com.apple.finder AppleShowAllFiles FALSE
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment