Pet is a simple command-line snippet manager that can be used to govern a library of shell commands. Users are able to give each stored command a name and a description, making Pet particularly helpful for rarely used or more difficult commands. The Pet site offers the following command as an example: 'echo | openssl s_client -connect example.com:443 2>/dev/null | openssl x509 -dates -noout'. In Pet, such a complex command can be renamed something easily recognizable like "Check expiration of an SSL Certificate." Within the command itself, it is possible to provide placeholders that Pet will prompt the user to fill in before executing the command. Pet also provides an interactive search feature that allows users to locate the snippet they wish to run. Snippets can by synchronized across a number of machines using either Gist or GitLab. The Pet README shows how it can be integrated with common shells like Bash, Z shell, and fish. The Pet website offers installers for Windows, macOS, and Linux. Pet is also available in the official repositories of many Unix-like systems.
(no comments available yet for this resource)