knqyf263 / pet

Simple command-line snippet manager
MIT License
4.44k stars 223 forks source link

[FeatureRequest] Just output the snipet to command line but not run it #216

Closed letitfly closed 7 months ago

letitfly commented 1 year ago

Often I have to edit the command a little bit before run it.

I know I can do a "pet search" but I have to copy paste it on the command line again which is a little annoyance.

hcvst commented 1 year ago

I was looking for that too and added this function to my .zshrc, @letitfly .

pets() 
  print -z $(pet search $*)
}