Skip to content

Instantly share code, notes, and snippets.

@chockenberry
chockenberry / finder_icons.sh
Last active Jun 6, 2018
A simple shell script to turn the Finders desktop icons on and off
View finder_icons.sh
#!/bin/sh
defaults read com.apple.finder CreateDesktop > /dev/null 2>&1
enabled=$?
if [ "$1" = "off" ]; then
if [ $enabled -eq 1 ]; then
defaults write com.apple.finder CreateDesktop false
osascript -e 'tell application "Finder" to quit'
open -a Finder
You can’t perform that action at this time.