[email protected]:~$ man pet

← cd ..
pet logo

pet

Simple command-line snippet manager

★ 5.4KMITv1.0.1GoShell & Terminal

INSTALLATION

$ brew install pet
pet demo

DESCRIPTION

I have a hard time remembering complex command or ones that I rarely use. Moreover, it is difficult to find them in shell history.

It's time to let go of the expectation of remembering every command, and focus on productivity and finding the right commands as fast as possible. It's fun when you're 2 years in and work with 2 tools, but less so when you're a decade in and work across backend/frontend/infrastructure with tons of tools. You most probably relate to this if you're a developer.

pet is a simple tool that allows you to save, tag, search, and execute command-line snippets easily! It's now nearly 8 years old and is used by many developers around the world.

pet is written in Go, and therefore you can just grab the binary releases and drop it in your $PATH.

DETAILS

Repository
knqyf263/pet (2026-03-13)
Author
knqyf263
License
MIT
Category
Shell & Terminal
Language
Go
Platforms
Linux, macOS
Version
v1.0.1 (2024-12-08)
Repo Age
9 years old

STAR HISTORY

Star history chart for knqyf263/pet

TAGS

BADGE

Maintain pet? Add this badge to your README: listings that link back are marked verified and ranked first in the directory. It's checked once a day.

pet on The Terminal Index

[+] show code[−] hide code
Markdown
[![pet on The Terminal Index](https://cli.masoko.net/badge/pet.svg)](https://cli.masoko.net/tools/pet/)
HTML
<a href="https://cli.masoko.net/tools/pet/"><img src="https://cli.masoko.net/badge/pet.svg" alt="pet on The Terminal Index"></a>

RELATED TOOLS