Skip to content

Instantly share code, notes, and snippets.

@Aupajo
Created July 31, 2008 02:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aupajo/3387 to your computer and use it in GitHub Desktop.
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.
#!/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