Skip to content

Instantly share code, notes, and snippets.

@mminer
Created May 16, 2011 21:27
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 mminer/975412 to your computer and use it in GitHub Desktop.
Save mminer/975412 to your computer and use it in GitHub Desktop.
Shell script to toggle invisible files in Finder.
#!/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
@mminer
Copy link
Author

mminer commented Nov 1, 2011

Works great when you alias the script to a command like si.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment