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.

INSTALL

brew install pet
copy
nix profile install nixpkgs#pet
copy

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)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid