Created
October 22, 2016 15:08
-
-
Save gcch/f0f76bd31402dc6607b26038f2460846 to your computer and use it in GitHub Desktop.
This file contains 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/bash | |
# -------------------------------------------------- # | |
# Visible/Invisible switcher for OS X | |
# Copyright (C) 2014 tag. All rights reserved. | |
# -------------------------------------------------- # | |
status=`defaults read com.apple.finder AppleShowAllFiles` | |
if ${status}; then | |
defaults write com.apple.finder AppleShowAllFiles FALSE | |
else | |
defaults write com.apple.finder AppleShowAllFiles TRUE | |
fi | |
killall Finder | |
killall Terminal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment