Skip to content

Instantly share code, notes, and snippets.

@andrewbigger
Created July 25, 2014 02:09
Show Gist options
  • Save andrewbigger/0248381b74423885d88e to your computer and use it in GitHub Desktop.
Save andrewbigger/0248381b74423885d88e to your computer and use it in GitHub Desktop.
OSX: Show/Hide hidden files
#!/bin/bash
is_shown=$(defaults read com.apple.finder AppleShowAllFiles)
if [ $is_shown != "YES" ]
then
defaults write com.apple.finder AppleShowAllFiles YES
else
defaults write com.apple.finder AppleShowAllFiles NO
fi
killall Finder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment