Today, while trying to automate my compile/test/lint workflow in Go, I learnt how easy it’s to do iTerm, with it’s default settings.

Simply by going to Settings > Keys > + and adding a new binding, you just got your new shortcut. In my case I associated Ctrl + t to:

go generate && go build -v && go test -v && go vet &&  golangci-lint run\n

Notice the \n at the end, so it runs, instead of simply sending the text.

Here’s a quick screenshot:

screenshot

Now, while I can see how this is not very portable, for example to my Ubuntu machine, It’s so simple to set up, the ROI is nearly instantaneous :-)