Skip to content

Instantly share code, notes, and snippets.

@rafaelss
Created July 22, 2010 18:19
Show Gist options
  • Save rafaelss/486365 to your computer and use it in GitHub Desktop.
Save rafaelss/486365 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
current = `defaults read com.apple.finder AppleShowAllFiles`
current = current.strip == 'TRUE' ? 'FALSE' : 'TRUE'
`defaults write com.apple.finder AppleShowAllFiles #{current}`
`killall Finder`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment