-
-
Save matthewsimo/1035754 to your computer and use it in GitHub Desktop.
Little bash script that toggles showing hidden files in Finder - add to your .bashrc file.
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/bash | |
| # show/hide .files | |
| function show { | |
| showfiles=`defaults read com.apple.Finder AppleShowAllFiles` | |
| if [ "$showfiles" = "TRUE" ]; then | |
| echo "Files Hidden"; | |
| defaults write com.apple.finder AppleShowAllFiles FALSE | |
| else | |
| echo "Showing Hidden Files"; | |
| defaults write com.apple.finder AppleShowAllFiles TRUE | |
| fi | |
| killall Finder | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment