The configuration for Pet employs an access token for GitHub Gist.
This access token is stored in 1Password vault. A secret injection step is required to ensure this secret stays secret.
cd ~/.dotfiles/pet/.config/pet
op inject -i config-template.toml -o config.toml
NOTE: config.toml
is included in .gitignore
.
Command snippets are sync'd to this GitHub Gist.
cd ~/.dotfiles
stow pet
See zsh's scripts for the implementation.
-
<C-s>
brings up apet search
prompt to look up existing snippets. Much like how<C-r>
lets you searchhistory
. -
prev
command lets youpet new
the previously executed command in the current terminal buffer.