Fish plugin for knqyf263/pet — a CLI snippet manager.
pet must be installed separately.
fisher
fisher install cest-la-v/fish-petoh-my-fish
omf install https://github.com/cest-la-v/fish-petSaves the previous command as a new pet snippet.
pet-prevSearches pet snippets and pastes the selection into the command line. Bind it to a key for quick access.
Add to ~/.config/fish/functions/fish_user_key_bindings.fish:
function fish_user_key_bindings
bind \cs 'pet-select'
end