Created
April 23, 2015 08:56
-
-
Save bodja/64d8a615e22e1338099d to your computer and use it in GitHub Desktop.
Show/hide files on mac os x
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
show () { | |
if [ $(defaults read com.apple.finder AppleShowAllFiles) == NO ]; then | |
SHOW=YES | |
else | |
SHOW=NO | |
fi | |
defaults write com.apple.finder AppleShowAllFiles $SHOW | |
kill -1 `ps aucx | grep Finder | awk '{print $2}'` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CREATE A SHORTCUT