xonsh-autoxsh

Auto launcher of `.autoxsh` scripts for Xonsh shell's `cd` function


License
GPL-3.0
Install
pip install xonsh-autoxsh==0.3

Documentation

xonsh-autoxsh

Xontrib for Xonsh that allows automatic executions of xonsh scripts for specific directories.


PyPi version PyPi license PyPi license
Extension which automatically executes code in .autoxsh contents as xonsh script whenever you cd into a directory that contains it. e.g.

cd testing
echo "print('it works!')" > .autoxsh
cd .
>> it works!

Some use cases:

virtual-environments with Xonsh's Vox:

echo "vox activate my_project" > my_project/.autoxsh
cd my_project
# virtualenvironment will activate here

Installation

Just do a

pip install xonsh-autoxsh

or you can clone the repo with pip

pip install git+https://github.com/Granitas/xonsh-autoxsh

Configuration

To automatically load autoxsh at startup, put

xontrib load autoxsh

in your .xonshrc