Skip to content

Instantly share code, notes, and snippets.

@shawndumas
Last active November 30, 2023 12:50
Show Gist options
  • Save shawndumas/7421378 to your computer and use it in GitHub Desktop.
Save shawndumas/7421378 to your computer and use it in GitHub Desktop.
toggle AppleShowAllFiles
#!/bin/bash
#
# toggle AppleShowAllFiles
#
current_value=$(defaults read com.apple.finder AppleShowAllFiles)
if [ $current_value = "TRUE" ]
then
defaults write com.apple.finder AppleShowAllFiles FALSE
else
defaults write com.apple.finder AppleShowAllFiles TRUE
fi
killall Finder
@shawndumas
Copy link
Author

cd && wget https://gist.github.com/shawndumas/7421378/raw/f6e8795ae9073c7647abb862d9ae16b0ab03e165/th.sh && mv ~/th.sh /usr/local/bin/th && chmod +x /usr/local/bin/th

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment