Skip to content

Instantly share code, notes, and snippets.

@kieranajp
Created June 20, 2012 15:53
Show Gist options
  • Save kieranajp/2960615 to your computer and use it in GitHub Desktop.
Save kieranajp/2960615 to your computer and use it in GitHub Desktop.
Alfred: Toggle Hidden Files
# Paste this as a shell script extension in the Powerpack
SHOW=`defaults read com.apple.finder AppleShowAllFiles`
if [ "${SHOW}x" = "1x" ]; then
defaults write com.apple.finder AppleShowAllFiles -bool FALSE
else
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