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))
What
Adds another subcommand for
init
that prints out an initialization script for xonsh which utilizes Xonsh's event decorators to runshadowenv
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
withexecx($(shadowenv init xonsh))