LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pet

Simple command-line snippet manager

TLDR

Add a new snippet
$ pet new
copy
Add a new snippet with tags
$ pet new -t
copy
Search and run a snippet
$ pet exec
copy
Run a snippet filtered by tag
$ pet exec -t [tag_name]
copy
Copy a snippet to the clipboard
$ pet clip
copy
List all snippets
$ pet list
copy
Search snippets interactively
$ 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, GitLab Snippets, or GitHub Enterprise.

PARAMETERS

new

Create a new command snippet. Use -t to add tags.
exec
Search for a snippet and execute it. Use -t to filter by tag.
clip
Copy the selected snippet to the clipboard.
list
Show 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, GitLab Snippets, or GitHub Enterprise.
version
Print the version number.
--config string
Specify config file (default $HOME/.config/pet/config.toml).
--debug
Enable debug mode.

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), peco(1)

Copied to clipboard
Kai