I\'ve been Googling for a while looking for a simple way to do this, and I can\'t find one.
I have a custom terminal environment set up (zsh) with various aliases and fu
One other solution without scripting is iTerm2, which has this feature built in. It has even more features that make it worth checking out too.