Skip to content

Instantly share code, notes, and snippets.

@Victa
Created December 30, 2011 16:29
Show Gist options
  • Select an option

  • Save Victa/1540518 to your computer and use it in GitHub Desktop.

Select an option

Save Victa/1540518 to your computer and use it in GitHub Desktop.
terminal: show/hide hidden files
# show/hide hidden files
hidden() {
if [ "$(defaults read com.apple.finder AppleShowAllFiles)" = 0 ]
then defaults write com.apple.finder AppleShowAllFiles 1
else defaults write com.apple.finder AppleShowAllFiles 0
fi
killall Finder
}
@Victa

Victa commented Dec 30, 2011

Copy link
Copy Markdown
Author

Usage:
type hidden in your command prompt

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