
If you tend to run the same Terminal command pretty often, then it makes sense to do one of two things: create a text expander snippet or turn it into a keyboard shortcut. How-To Geek shows you how to do the latter using Appleās built-in Automator tool.
Source: LifeHacker – Trigger Any Terminal Command With a Keyboard Shortcut Using Automator