dyuri / xontrib-zoxide

Zoxide integration for xonsh.
MIT License
13 stars 4 forks source link

Convert to Python and use cache zoxide init #4

Closed eugenesvk closed 1 year ago

eugenesvk commented 1 year ago

I've noticed that for some reason invoking execx is slower than it needs be, so I checked if importing the zoxide init xonsh file was faster, and it was! So I've cached it and if it exists and matches the zoxide init xonsh output, import the file instead of executing the output, and got a ~3 factor speedup, although not that huge in absolute

Also converted to Python, but not sure how much that part saves (and partially converted to the newer declarative template to avoid installation errors)