$ show anki-code/xonsh-cheatsheet
This repository provides an xontrib (plugin) for the Xonsh shell that adds a `cheatsheet` command to open the project's README.md in a web browser. The README.md serves as a comprehensive cheat sheet for the Xonsh shell, covering installation, basics, and advanced topics. The repository also includes an example script demonstrating how to make web requests, process output, and use colored output in Xonsh.
The LLM identified 2 files worth highlighting for reuse:
Defines a simple xontrib that adds a `cheatsheet` alias to open the project's README in a web browser. Demonstrates the pattern of setting up an alias in a xontrib and cleaning up temporary functions to avoid namespace pollution.
A self-contained script that demonstrates how to make an HTTP request using curl, process the output (count lines), handle errors, and produce colored output in the Xonsh shell. Uses argparse for argument parsing, argcomplete for tab completion, and the walrus operator for concise error checking.