Shopify / shadowenv

reversible directory-local environment variable manipulations
https://shopify.github.io/shadowenv/
MIT License
396 stars 18 forks source link

feat: adds support for xonsh #106

Closed zscholl closed 2 years ago

zscholl commented 2 years ago

What

Adds another subcommand for init that prints out an initialization script for xonsh which utilizes Xonsh's event decorators to run shadowenv when a directory changes, or when a new shell is spawned.

I've tested this locally with my xonsh installation. The initialization script can be included in .xonshrc with execx($(shadowenv init xonsh))

zscholl commented 2 years ago

Closing because providing explicit support of Xonsh is undesirable for Shadowenv. See https://github.com/zscholl/xontrib-shadowenv for a Xonsh integration