百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
X

xontrib-rc-awesome

> 开发工具
开源

使用令人惊叹的代码片段使您的 xonsh RC 文件可安装。

99 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

使用令人惊叹的代码片段使您的 xonsh RC 文件可安装。

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

  1. Fork this repository

  2. Rename the repository to xontrib-rc-yourname

  3. Change the name in pyproject.toml ([project] → name)

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

  5. Add xontribs you need to pyproject.toml ([project] → dependencies) — they will be installed automatically during pip install

  6. Now you can just run anywhere:

    xonsh
    pip install -U git+https://github.com/yourname/xontrib-rc-yourname
    
    # Only for interactive mode:
    # (You can also create autoloadable xontrib using xontrib-template. See below.)
    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.xsh
    
    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 in pyproject.toml 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:

bash
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:

xonsh
pip install -U git+https://github.com/anki-code/xontrib-rc-awesome
echo 'xontrib load rc_awesome' >> ~/.xonshrc
xonsh

Learn from xonsh RC gurus

  • Qyriad NixOS RC
  • Anthony Scopatz RC (click Details to see the xonshrc)
  • Sean Farley RC
  • Gyuri Horak RC
  • Jason RC
  • Alexander Sosedkin RC
  • Noorhteen Raja NJ RC
  • Ryan Delaney RC

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.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Pythonawesomeawesome-configawesome-shellawesome-xonsh

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具