purcell / envrc

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

async-shell-command support? #52

Closed TxGVNN closed 2 years ago

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

Makes sense, done — thanks!