Skip to content

Instantly share code, notes, and snippets.

@sinaryuda
Created September 30, 2012 16:14
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 sinaryuda/3807314 to your computer and use it in GitHub Desktop.
Save sinaryuda/3807314 to your computer and use it in GitHub Desktop.
on/off hidden files Mac OSX
#!/bin/bash
if [ "$1" == "on" ]
then
echo "tampilkan hidden files"
defaults write com.apple.Finder AppleShowAllFiles TRUE
killall Finder
fi
if [ $1 == "off" ]
then
echo "sembunyikan hidden files"
defaults write com.apple.Finder AppleShowAllFiles FALSE
killall Finder
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment