Knowing the command line can be immensely productive, but it can be difficult to remember all useful commands. You might try to search for Google every time you want to use a specific command, but it is time-consuming.
Is there a way that you can save your favorite command-line snippets and access them easily when needed? You can do that with pet.
Pet is a command-line snippet manager. To save a new snippet, use pet new
. To find a snippet, simply use pet list
to list all commands or pet exec
to execute a snippet. Find an example above.
You can find how to install pet here.