I stumbled upon the most starred dotfiles on Github, by Mathias Bynens - https://github.com/mathiasbynens/dotfiles . It has the best
.aliases file, where I learnt a lot of shortcuts for bash, such as these:
alias hidedesktop="defaults write com.apple.finder CreateDesktop -bool false && killall Finder" alias showdesktop="defaults write com.apple.finder CreateDesktop -bool true && killall Finder"
Running the commands on your terminal hides/shows all your desktop icons (useful when presenting). Be sure to check out the rest of the dotfiles for more interesting features1