knqyf263 / pet

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

Does your pet support Bash functions? #214

Closed bugb closed 7 months ago

bugb commented 1 year ago

Example:

junk() { mv "$@" ~/.Trash/; }
RamiAwar commented 7 months ago

You can use functions yes. Pet is only copy-pasting your saved snippet, so if your snippet has bash functions that would just work!

bugb commented 6 months ago

Awesome, thanks!