Skip to content

Instantly share code, notes, and snippets.

@bg5sbk
Created April 4, 2014 13:44
Show Gist options
  • Save bg5sbk/9974989 to your computer and use it in GitHub Desktop.
Save bg5sbk/9974989 to your computer and use it in GitHub Desktop.
Enable or disable show all file on Mac OS
#!/bin/sh
if [ ! $# -eq 1 ]; then
echo "How To Use:" >&2
echo " ./show_all.sh [Yes|No]" >&2
exit
elif [ ! $1 == 'Yes' ] && [ ! $1 == 'No' ]; then
echo "How To Use:" >&2
echo " ./show_all.sh [Yes|No]" >&2
exit
fi
defaults write com.apple.finder AppleShowAllFiles $1 && killall Finder
Copy link

ghost commented Apr 4, 2014

ReactiveViewModel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment