ThomasHabets / cmdg

Command line Gmail client
Other
201 stars 22 forks source link

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

Open kurokirasama opened 2 years ago

kurokirasama commented 2 years 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 2 years 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 2 years ago

I'll try, thanks