Skip to content

Instantly share code, notes, and snippets.

@matthewsimo
Last active September 26, 2015 03:58
Show Gist options
  • Select an option

  • Save matthewsimo/1035754 to your computer and use it in GitHub Desktop.

Select an option

Save matthewsimo/1035754 to your computer and use it in GitHub Desktop.
Little bash script that toggles showing hidden files in Finder - add to your .bashrc file.
#! /bin/bash
# show/hide .files
function show {
showfiles=`defaults read com.apple.Finder AppleShowAllFiles`
if [ "$showfiles" = "TRUE" ]; then
echo "Files Hidden";
defaults write com.apple.finder AppleShowAllFiles FALSE
else
echo "Showing Hidden Files";
defaults write com.apple.finder AppleShowAllFiles TRUE
fi
killall Finder
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment