pet

Simple command-line snippet manager for saving and searching code snippets

brewmacoslinux
Try with needOr install directly
Source

About

Simple command-line snippet manager

Commands

pet

Examples

Save a new snippet with interactive prompts$ pet new
Search and execute a saved snippet$ pet search
List all saved snippets$ pet list