LinuxCommandLibrary

pet

Simple command-line snippet manager

TLDR

Add a new snippet
$ pet new
copy
Search and run a snippet
$ pet exec
copy
List all snippets
$ pet list
copy
Search snippets
$ pet search
copy
Edit the snippet file
$ pet edit
copy

SYNOPSIS

pet command [options]

DESCRIPTION

pet is a simple command-line snippet manager. It stores frequently used commands with descriptions and optional parameter placeholders, then lets you search and execute them interactively using fuzzy finders like fzf or peco. Snippets can be synced across machines via GitHub Gist.

PARAMETERS

new

Add a new command snippet.
exec
Search for a snippet and execute it.
list
List all stored snippets.
search
Search snippets interactively.
edit
Open the snippet file in your editor.
configure
Edit the configuration file.
sync
Sync snippets via Gist.

CAVEATS

Requires fzf or peco for interactive selection.

HISTORY

pet was created by Teppei Fukuda (knqyf263) and is written in Go.

SEE ALSO

nap(1), tldr(1), fzf(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard