Created
April 4, 2014 13:44
-
-
Save bg5sbk/9974989 to your computer and use it in GitHub Desktop.
Enable or disable show all file on Mac OS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReactiveViewModel