Created
December 30, 2011 16:29
-
-
Save Victa/1540518 to your computer and use it in GitHub Desktop.
terminal: show/hide hidden files
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/hide hidden files | |
| hidden() { | |
| if [ "$(defaults read com.apple.finder AppleShowAllFiles)" = 0 ] | |
| then defaults write com.apple.finder AppleShowAllFiles 1 | |
| else defaults write com.apple.finder AppleShowAllFiles 0 | |
| fi | |
| killall Finder | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage:
type hidden in your command prompt