Skip to content

Instantly share code, notes, and snippets.

@muffinresearch
Created April 16, 2014 10:52
Show Gist options
  • Save muffinresearch/10851792 to your computer and use it in GitHub Desktop.
Save muffinresearch/10851792 to your computer and use it in GitHub Desktop.
Shell Script Toggle hidden files OSX
#!/usr/bin/env bash
if [ "$(defaults read com.apple.finder AppleShowAllFiles)" == 'TRUE' ]; then
defaults write com.apple.finder AppleShowAllFiles FALSE
else
defaults write com.apple.finder AppleShowAllFiles TRUE
fi
killall Finder
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment