Making aliases for commonly used commands is nice if you know what commands you'll use a lot. But sometimes the same command is used several times in a row with different arguments. For example:
git fetch --some-option git do-something-else git another-command # ... lots more of the same
In this case it would be nice to drop
git each time. In some cases it may be multiple arguments a command should start with (e.g.
sudo apt ...).
What software can do this?
Note: I saw a project like this trending on GitHub a long time ago but can no longer find it. Naturally it would be nice if someone remembers what I'm thinking of, but anything that fits the description (or is a workable alternative) is an acceptable answer.