Skip to content

Instantly share code, notes, and snippets.

@alexrinass
Created October 19, 2011 09:01
Show Gist options
  • Save alexrinass/1297791 to your computer and use it in GitHub Desktop.
Save alexrinass/1297791 to your computer and use it in GitHub Desktop.
Show hidden files in Finder
defaults write com.apple.finder AppleShowAllFiles TRUE && killall Finder
#!/bin/sh
CURRENT_STATE=$(defaults read com.apple.finder AppleShowAllFiles)
if [ $CURRENT_STATE == "YES" ]; then
echo "Not showing hidden files in Finder..."
defaults write com.apple.finder AppleShowAllFiles NO && killall Finder
else
echo "Showing hidden files in Finder..."
defaults write com.apple.finder AppleShowAllFiles YES && killall Finder
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment