Skip to content

Instantly share code, notes, and snippets.

@ryan-blunden
Created August 9, 2015 10:08
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 ryan-blunden/127b13e496e4f055d440 to your computer and use it in GitHub Desktop.
Save ryan-blunden/127b13e496e4f055d440 to your computer and use it in GitHub Desktop.
Bash alias for showing/hiding hidden files in OSX
# Adds an alias `hidden_files` that requires either YES or NO to indicate whether they should be shown or hidden
# Usage: hidden_files YES|NO
hidden_files_fn() {
defaults write com.apple.finder AppleShowAllFiles $1
}
alias hidden_files=hidden_files_fn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment