Skip to content

Instantly share code, notes, and snippets.

@DomiR
Last active December 21, 2015 12:59
Show Gist options
  • Save DomiR/6309810 to your computer and use it in GitHub Desktop.
Save DomiR/6309810 to your computer and use it in GitHub Desktop.
showfiles=`defaults read com.apple.Finder AppleShowAllFiles`
if [ "$showfiles" = "TRUE" ]; then
say Hidden items disabled
defaults write com.apple.finder AppleShowAllFiles FALSE
else
say Hidden items enabled
defaults write com.apple.finder AppleShowAllFiles TRUE
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment