Skip to content

Instantly share code, notes, and snippets.

@yacine
Created January 11, 2016 07:58
Show Gist options
  • Save yacine/c9e8f97c629c9695ca87 to your computer and use it in GitHub Desktop.
Save yacine/c9e8f97c629c9695ca87 to your computer and use it in GitHub Desktop.
Simple shell script that allows to show or not the hidden files in osx via terminal
# Usage
# $ showhiddenfiles 'Args'
# YES 'Default you can leave YES'
# NO
function showhiddenfiles () {
defaults write com.apple.finder AppleShowAllFiles -bool ${1:-YES}
killall Finder
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment