Created
July 31, 2008 02:02
-
-
Save Aupajo/3387 to your computer and use it in GitHub Desktop.
Toggles hidden files in Finder on Mac OS X. Useful for finding those pesky .htaccess files.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ `defaults read com.apple.finder AppleShowAllFiles` == 1 ] | |
then | |
echo "Hiding hidden files." | |
defaults write com.apple.finder AppleShowAllFiles -bool false | |
else | |
echo "Showing hidden files." | |
defaults write com.apple.finder AppleShowAllFiles -bool true | |
fi | |
KillAll Finder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment