Skip to content

Instantly share code, notes, and snippets.

@timimsms
Last active March 29, 2019 22:44
Show Gist options
  • Save timimsms/01c25cfadc53d0d17e248af5b3ee21d8 to your computer and use it in GitHub Desktop.
Save timimsms/01c25cfadc53d0d17e248af5b3ee21d8 to your computer and use it in GitHub Desktop.
Show / Hide Desktop (Mac OS X)
# Note: Must be added to the bottom of your ~/.bash_proile or a
# dedicated ~/.aliases file sourced in ~/.bash/~/.bash_profile.
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Used to hide all icons on the desktop user-interface.
alias restart-dns='sudo killall -HUP mDNSResponder'
alias hide-desktop='
defaults write com.apple.finder CreateDesktop -bool false
killall Finder
echo "๐Ÿ™ˆ"
'
# Used to show/re-enable icons on the desktop user-interface.
alias show-desktop='
defaults write com.apple.finder CreateDesktop -bool true
killall Finder
echo "๐Ÿ™‰"
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment