Awesome snippets of code for xonshrc in xonsh shell.
If you like the idea click β on the repo and tweet.
-
Fork this repository
-
Rename the repository to
xontrib-rc-yourname
-
Change the name in setup.py
-
Change the name of
xontrib/rc_awesome.xsh
toxontrib/rc_yourname.xsh
-
Add xontribs you need to setup.py (the xontribs will be installed automatically during
pip install
) -
Now you can just run anywhere:
pip install -U git+https://github.com/yourname/xontrib-rc-yourname echo 'xontrib load rc_yourname' >> ~/.xonshrc # To avoid this create autoloadable xontrib using xontrib-template xonsh
Also you can avoid manual loading the xontrib in
~/.xonshrc
by creating autoloadable xontrib using xontrib-template. Answer yes on the question about enabling autoloading. -
Increment version to update the package using
pip install -U git+https://github.com/yourname/xontrib-rc-yourname
Just read rc_awesome and copy the snippets to your xonsh RC.
Or add awesome xonsh RC to the end of your xonshrc:
curl -s https://raw.githubusercontent.com/anki-code/xontrib-rc-awesome/main/xontrib/rc_awesome.xsh >> ~/.xonshrc
Or install awesome xonsh RC as a package with automatically installable xontribs:
pip install -U git+https://github.com/anki-code/xontrib-rc-awesome
echo 'xontrib load rc_awesome' >> ~/.xonshrc
xonsh
- Anthony Scopatz RC (click Details to see the xonshrc)
- Sean Farley RC
- Gyuri Horak RC
- Alexander Sosedkin RC
- Noorhteen Raja NJ RC
- Ryan Delaney RC
- xonsh-cheatsheet - cheat sheet for xonsh shell with copy-pastable examples.
- xontrib-template - Full-featured template for building extension (xontrib) for the xonsh shell.