Favicon of pet

pet

Command-line snippet manager for developers to save, tag, and quickly recall complex shell commands with variable support and cloud synchronization.

Pet is a lightweight command-line tool that eliminates the need to memorize complex or rarely-used commands. Instead of struggling to find instructions in shell history, you can save snippets once and retrieve them instantly whenever needed.

Key capabilities include:

  • Save and organize command snippets with custom tags for faster discovery
  • Parameterized snippets with optional default values, allowing you to create flexible, reusable commands
  • Interactive search to find the exact command you need in seconds
  • Direct execution of stored snippets without manual copying
  • Simple TOML configuration that you can edit manually or through the CLI
  • Cloud synchronization with GitHub, GitHub Enterprise, and GitLab to backup and share snippets across devices

The tool is built in Go, making it fast and portable across different systems. Whether you're managing Docker commands, complex git operations, system administration tasks, or specialized tool configurations, pet keeps your most-used instructions at your fingertips. It's particularly valuable for developers working across multiple tools and platforms who need quick access to their command library without cluttering their shell history.

Install

Brew
$ brew install pet
Brew
$ brew install knqyf263/pet/pet

Features

Config fileJSON outputScriptable

Media

Pros

4
  • Saves, tags, and recalls shell command snippets.
  • Supports variables within snippets for dynamic commands.
  • Offers cloud synchronization for snippets across devices.
  • Provides interactive search and execution of saved commands.

Cons

1
  • Configuration is via TOML file, not a more common format like YAML or JSON.

Related tools

Share:

Auto-fetched .

Recent releases

Similar to pet

Favicon

 

  
 
Favicon

 

  
 
Favicon