Skip to content

Instantly share code, notes, and snippets.

@virullius
Created January 3, 2014 06:02
Show Gist options
  • Save virullius/8233579 to your computer and use it in GitHub Desktop.
Save virullius/8233579 to your computer and use it in GitHub Desktop.
Show or hide hidden files in Finder on Mac.
#!/bin/bash
if [ -n "$1" ]
then
if [ "$1" == "show" ]
then
defaults write com.apple.finder AppleShowAllFiles -boolean true
elif [ "$1" == "hide" ]
then
defaults delete com.apple.finder AppleShowAllFiles
fi
killall Finder
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment