I often find myself repeat the same commands in a project, for example in Openstack/Kubernetes, but also when I need to interface with Docker (build/push image).
Instead of relying on bash history or writing a few bash scripts, it is just easier to write a Makefile
, even if you do not use the Make dependencies and you just use it as a collection of useful commands.
Here is a template to start from, which supports make list
to show available targets and shows how to pass arguments to a command: