hausir / xonsh-autoxsh

Automatically execute scripts for directories in Xonsh Shell.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Automatically execute scripts for directories in Xonsh Shell.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%