Skip to content

Instantly share code, notes, and snippets.

@rietta
Created October 2, 2013 04:26
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 rietta/6789152 to your computer and use it in GitHub Desktop.
Save rietta/6789152 to your computer and use it in GitHub Desktop.
Mac OS X, show/hide files in Finder. I keep it in ~/bin/
#!/usr/bin/env bash
if [ "$1" == "show" ]
then
echo 'Enabling hidden files in Finder'
defaults write com.apple.finder AppleShowAllFiles -bool YES
else
echo 'Turn off hidden files in Finder'
defaults write com.apple.finder AppleShowAllFiles -bool NO
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment