Skip to content

Instantly share code, notes, and snippets.

@cuzz22000
Created July 29, 2015 19:01
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 cuzz22000/f4df602c7b71a7e5a037 to your computer and use it in GitHub Desktop.
Save cuzz22000/f4df602c7b71a7e5a037 to your computer and use it in GitHub Desktop.
Show hidden files in OSx Finder
#!/bin/bash
#togles hidden files in the finder application
if [ "$1" = "" ] || ! [ "$1" = "true" ] && ! [ "$1" = "false" ]
then
echo "useage: ./showhidden [true | false]"
exit
fi
defaults write com.apple.finder AppleShowAllFiles $1
killall Finder
echo "hidden files toggled"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment