Pet

Manages command-line snippets by saving, searching, and executing complex commands from a local TOML file.

majiayu000 Updated 567 repo stars

File contents

pet (Simple Command-Line Snippet Manager)

Pet acts as a CLI snippet manager. It helps you save complex commands and reuse them.

Usage

Create a new snippet

pet new

This opens an editor. Enter the command and a description. Format:

[[snippets]]
  command = "echo 'hello'"
  description = "say hello"
  output = ""

Search and List snippets

pet search

Execute a snippet directly

pet exec

Sync with Gist (Optional)

If configured in ~/.config/pet/config.toml, you can sync snippets to a GitHub Gist:

pet sync

Storage

Snippets are stored in ~/.config/pet/snippet.toml.

majiayu000/claude-skill-registry/tree/main/skills/bash/pet commit aa99a96376

Frequently asked questions

npx skillmds@latest add majiayu000/pet