You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Awesome snippets of code for xonshrc in xonsh shell.
If you like the idea click ⭐ on the repo and tweet.
First of all
Learn about xonsh run control (RC) files in official docs - Run Control File. You should know about what RC files are used in interactive and non-interactive sessions.
Use cases
Create your own pip-installable RC based on the awesome xonsh RC
pipinstall-Ugit+https://github.com/yourname/xontrib-rc-yourname# Only for interactive mode:# (You can also create autoloadable xontrib using xontrib-template.)echo'xontrib load rc_yourname'>>~/.xonshrc# For interactive or non-interactive (https://xon.sh/xonshrc.html):# mkdir -p ~/.config/xonsh/rc.d/# echo 'xontrib load rc_yourname' > ~/.config/xonsh/rc.d/rc_yourname.xshxonsh
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