knqyf263 / pet

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

Add config option to overwrite used shell #200

Closed brumhard closed 1 year ago

brumhard commented 2 years ago

This PR introduces a new GeneralConfig field called Cmd which can be used to overwrite the default command that is used to execute a snippet. Currently sh -c is used for any system other than windows. With this PR it's now possible to set it to sth like ["bash", "-c"] which then uses bash to execute a snippet.

Fixes #187

brumhard commented 2 years ago

I've just seen there's a similar PR here: #196

knqyf263 commented 1 year ago

Thanks