Skip to content

Instantly share code, notes, and snippets.

@butterybread
Last active May 29, 2017 12:51
Show Gist options
  • Save butterybread/c1841c92d68b4c3b66b46c5c76e1b4f3 to your computer and use it in GitHub Desktop.
Save butterybread/c1841c92d68b4c3b66b46c5c76e1b4f3 to your computer and use it in GitHub Desktop.
Bash alias for showing and hiding hidden files in finder

Show hidden files in Finder (macOS/OSX)

Create an alias to quickly show hidden files or hide them again. Add these aliases to your .bash_profile or .zshrc file.

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