ThomasHabets / cmdg

Command line Gmail client
Other
197 stars 18 forks source link

is there a way to run a command automatically when piping a message? #101

Open kurokirasama opened 1 year ago

kurokirasama commented 1 year ago

I need to run a command before I type my own when piping to a message.

More precisely, I'm using nushell as my shell, and I would like to load some custom command first so they are available.

ThomasHabets commented 1 year ago

No. If it's things that can't be loaded always (some rc file), can you just pipe it to a wrapper script that loads the stuff?

kurokirasama commented 1 year ago

I'll try, thanks