omp packages

@giladbarnea/pi-pretty-bash1.0.3

Syntax-highlight Bash tool calls and JSON output in Pi's TUI.

GitHub Actions Published 10 days ago MIT ~218 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

pi-pretty-bash

Bash tool calls should look like Bash.

pi extension npm version license TypeScript

pi-pretty-bash adds theme-aware syntax colors to Bash tool calls and JSON output in Pi's TUI.

A syntax-highlighted Bash tool call in Pi

Install

pi install npm:@giladbarnea/pi-pretty-bash

Start a new Pi session, or run /reload in the current session. Every later Bash tool call is highlighted automatically.

Bash commands and JSON output get syntax colors

The extension starts from Pi's complete built-in Bash definition. It highlights the visible command with Pi's Bash colors.

After a command finishes, the extension checks its complete output with JSON.parse(). Valid JSON gets Pi's JSON colors without reformatting. All other output keeps Pi's built-in rendering.

Pi still owns command execution, streaming output, timing, truncation, expansion, and error display.

Compatibility

pi-pretty-bash requires Pi 0.99.2 or newer.

License

MIT