@giladbarnea/pi-pretty-bash

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

Packages

Package details

extension

Install @giladbarnea/pi-pretty-bash from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@giladbarnea/pi-pretty-bash
Package
@giladbarnea/pi-pretty-bash
Version
1.0.3
Published
Oct 9, 2026
Downloads
218/mo · 186/wk
Author
giladbarnea
License
MIT
Types
extension
Size
145.7 KB
Dependencies
0 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

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.

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