purcell / envrc

Emacs support for direnv which operates buffer-locally
375 stars 35 forks source link

async-shell-command support? #52

Closed TxGVNN closed 1 year ago

TxGVNN commented 1 year ago

Hi @purcell

I wonder why we don't propagate env for async-shell-command. Sometimes I use async-shell-command to call pip install but the pip version is not correct

And this help me

(advice-add 'async-shell-command :around #'envrc-propagate-environment)

Thanks

purcell commented 1 year ago

Makes sense, done — thanks!