Skip to content

Instantly share code, notes, and snippets.

@davetrux
Created November 29, 2017 22:58
Show Gist options
  • Save davetrux/f7fd0225ca0ce757601f8bc3c64098fd to your computer and use it in GitHub Desktop.
Save davetrux/f7fd0225ca0ce757601f8bc3c64098fd to your computer and use it in GitHub Desktop.
Mac Hide/Show Hidden Files
## Put these in your .bash_profile found in your home directory
## in the terminal type source ~/.bash_profile to reload your profile to make them immediately usable or close and re-open Terminal
# Hide and show hidden files in Finder windows
alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app'
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment