Code Monkey home page Code Monkey logo

xontrib-rc-awesome's Introduction

Awesome snippets of code for xonshrc in xonsh shell.

If you like the idea click โญ on the repo and tweet.

Use cases

Create your own pip-installable RC based on the awesome xonsh RC

  1. Fork this repository

  2. Rename the repository to xontrib-rc-yourname

  3. Change the name in setup.py

  4. Change the name of xontrib/rc_awesome.xsh to xontrib/rc_yourname.xsh

  5. Add xontribs you need to setup.py (the xontribs will be installed automatically during pip install)

  6. 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.

  7. Increment version to update the package using pip install -U git+https://github.com/yourname/xontrib-rc-yourname

  8. Take a look into xonsh-awesome-cli-app if you want to create your own toolset.

Copy and paste

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

Learn from xonsh RC gurus

See also

  • xonsh-cheatsheet - cheat sheet for xonsh shell with copy-pastable examples.
  • xontrib-template - Full-featured template for building extension (xontrib) for the xonsh shell.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.