Skip to content

Instantly share code, notes, and snippets.

@mattmccray
Created February 5, 2010 00:53
Show Gist options
  • Save mattmccray/295342 to your computer and use it in GitHub Desktop.
Save mattmccray/295342 to your computer and use it in GitHub Desktop.
Bash script for showing/hiding desktop icons in OSX
# Goes in your .bash_rc or .profile
# Hides the icons from your desktop
desktop_hide() {
defaults write com.apple.finder CreateDesktop -bool false
killall Finder
}
# Show the icons from your desktop
desktop_show() {
defaults write com.apple.finder CreateDesktop -bool true
killall Finder
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment