Skip to content

Instantly share code, notes, and snippets.

@tjt263
Created January 23, 2018 11:06
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
#!/usr/bin/env bash
if showall=$(defaults read com.apple.finder AppleShowAllFiles) && [[ $showall = TRUE ]];
then defaults write com.apple.finder AppleShowAllFiles FALSE;
else defaults write com.apple.finder AppleShowAllFiles TRUE;
fi
killall Finder
####
#!/usr/bin/env bash
if [[ "$(defaults read com.apple.finder AppleShowAllFiles)" = "TRUE" ]];
then defaults write com.apple.finder AppleShowAllFiles FALSE;
else 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