Skip to content

Instantly share code, notes, and snippets.

@scottstanfield
Created October 30, 2013 05:22
Show Gist options
  • Save scottstanfield/7227576 to your computer and use it in GitHub Desktop.
Save scottstanfield/7227576 to your computer and use it in GitHub Desktop.
Toggle hidden files in OS X Mavericks
#!/usr/bin/env bash
# Toggles the visibility of hidden files in OS X Mavericks Finder
current_value=$(defaults read com.apple.finder AppleShowAllFiles 2> /dev/null)
if [ -z "$current_value" ]; then
defaults write com.apple.finder AppleShowAllFiles true
else
defaults delete com.apple.finder AppleShowAllFiles
fi
killall Finder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment