Type 2 fun is a perfect example of the fading effect cognitive bias.
Fading effect bias interestingly causes the emotion associated with negative event memories to generally fade faster than the emotion associated with positive event memories.
You can show/hide terminal windows with a hotkey natively using iTerm2.
Under Preferences > Keys > Hotkey I've set the system-wide hotkey to option+space which means if I need a terminal, I can press those keys and have iTerm pop up over my active window.
Pressing them again hides the window and brings focus back to the previously active window which has been great for productivity.
Boxen (https://github.com/boxen/puppet-boxen) used Puppet to achieve this. It worked, but it was quite opinionated and of course you needed to know Puppet so the learning curve was steep. It's since been superseded by Homebrew which I find is a far better experience.