Pet acts as a CLI snippet manager. It helps you save complex commands and reuse them.
pet new
This opens an editor. Enter the command and a description.
Format:
[[snippets]]
command = "echo 'hello'"
description = "say hello"
output = ""
pet search
pet exec
If configured in ~/.config/pet/config.toml, you can sync snippets to a GitHub Gist:
pet sync
Snippets are stored in ~/.config/pet/snippet.toml.
共 1 个版本