Skip to content

Instantly share code, notes, and snippets.

@chutaicho
Created February 22, 2014 16:41
Show Gist options
  • Save chutaicho/9157710 to your computer and use it in GitHub Desktop.
Save chutaicho/9157710 to your computer and use it in GitHub Desktop.
Switching status of AppleShowAllFiles
#!/bin/bash
current_value=$(defaults read com.apple.finder AppleShowAllFiles)
if [ $current_value = "TRUE" ]
then
defaults write com.apple.finder AppleShowAllFiles FALSE
else
defaults write com.apple.finder AppleShowAllFiles TRUE
fi
killall Finder
@chutaicho
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment