Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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 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
You can’t perform that action at this time.