Skip to content

Instantly share code, notes, and snippets.

@krayinc
Created July 1, 2009 06:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krayinc/138629 to your computer and use it in GitHub Desktop.
Save krayinc/138629 to your computer and use it in GitHub Desktop.
不可視ファイルのON/OFF
#!/bin/bash
case "$1" in
true)
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
;;
false)
defaults write com.apple.finder AppleShowAllFiles FALSE
killall Finder
;;
*)
echo $"Usage: $0 {true|false}"
exit 1
esac
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment