Files
ShowHidden/README.md
manfromhuh 51fbf15428 Adding exes.
Adding all the files to run the application.
2020-07-31 11:20:53 -04:00

43 lines
1.3 KiB
Markdown

# Show Hidden
Shows or hides hidden files in mac finder.
It's a very basic shell script.
Here's the full thing.
```bash
#show or hide hidden files in mac finder
show=$(defaults read com.apple.finder AppleShowAllFiles)
if [ "$show" == "TRUE" ]
then
defaults write com.apple.finder AppleShowAllFiles FALSE;killall Finder
else [ "$show" == "FALSE" ]
defaults write com.apple.finder AppleShowAllFiles TRUE;killall Finder
fi
exit
```
**[Note]:** *Only works on OSX.* It shouldn't damage anything if you run it on another system with bash installed but it won't do anything either.
## Requierments
A version of OSX around 10.6
OSX 10.6.8 is the only thing this has been tested on. If you have a simi-modern version of OSX/macOS this functionality is now built into Files.
## Running
Two methods of running are provided.
#### Method 1. The script
* Download the script or copy it from this [readme](https://efrick.ddns.net/git/manfromhuh/ShowHidden/src/branch/master/README.md) and place it in a folder on your path.
* Add execute permissions. Example `chmod u+x /path/to/script/show_hidden.sh`
* Run from the commandline.
#### Method 2. The app
* Download the [.dmg](https://efrick.ddns.net/git/manfromhuh/ShowHidden/releases).
* Open the .dmg and drag the application to the Applications folder.
* Run from the application menu.