Created
May 16, 2011 21:27
-
-
Save mminer/975412 to your computer and use it in GitHub Desktop.
Shell script to toggle invisible files in Finder.
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 | |
STATUS=`defaults read com.apple.finder AppleShowAllFiles` | |
if [ "$STATUS" = TRUE ]; then | |
defaults write com.apple.finder AppleShowAllFiles FALSE | |
else | |
defaults write com.apple.finder AppleShowAllFiles TRUE | |
fi | |
# Relaunch the Finder | |
killall Finder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works great when you alias the script to a command like
si
.