I don't have hacks or tricks. It's all about autocompletion* and a good memory ;-)
*Autocompletion by fish.

Or if I can't install fish then it's zsh+zsh-completions managed via antigen.
On my Mac iterm2-v3-beta at home and on my Linux server at work, I install and upgrade Apps, Libraries, and Tools via brew or Linuxbrew.
On my DigitalOcean machines, it's fish shell.
On my corporate Windows machine, I run cmder.
I install and update Windows Apps and Tools via chocolatey.
I don't maintain aliases because of the nature that I am running on four different platforms and very different environments. Sharing my hacks to each shell seems to be harder than just remembering some commands. At the end cmd+r or ctrl+r does the job for me.
fish fish is a smart and user-friendly command line shell for OS X, Linux, and the rest of the family.antigen A plugin manager for zsh, inspired by oh-my-zsh and vundle.iterm2 brew The missing package manager for OS Xlinuxbrew The Homebrew package manager for Linuxcmder Lovely console emulator package for Windowschocolatey Chocolatey NuGet is a Machine Package Manager, somewhat like apt-get, but built with Windows in mind.