Home

Awesome

bronze

A cross-shell customizable powerline-like prompt heavily inspired by Agnoster.<br/>

Rust port

There is a new, compatible, 50% faster port of this called silver written in Rust. Silver is compatible with the same configuration as bronze once you rename variables from BRONZE to SILVER ($BRONZE -> $SILVER, $BRONZE_SHELL -> $SILVER_SHELL, ...). The only main difference is that silver does not support the packages or plugin modules.

How does it work?

Unlike pretty much every other shell prompt, bronze is not written in shell script, but entirely in Go, so all prompt segments are loaded asynchronously for a speed boost.

When bronze init is run, it outputs shell code that sets your prompt to run bronze prompt, which outputs the actual prompt. The bronze prompt command relies on environment variables for configuration.

Getting started

Since bronze is not written in shell script, it should theoretically be compatible with any shell, but the three supported shells are Bash, Zsh, and fish.

Icons

To be able to use the custom icons (which are enabled by default), you must patch your font or install a pre-patched font from Nerd Fonts.

Installation

From source

From pre-compiled binary

macOS

On macOS, you will have to do a bit more:

Configuration

Now that you have bronze installed, you need to configure it. To have your prompt look like the one in the screenshot above, add this to your ~/.bashrc/~/.zshrc:

BRONZE=(status:black:white dir:blue:black git:green:black cmdtime:magenta:black)
export BRONZE_SHELL=$SHELL # bash, zsh, or fish

Or add the following to your ~/.config/fish/config.fish:

set BRONZE status:black:white dir:blue:black git:green:black cmdtime:magenta:black
set -x BRONZE_SHELL fish

Now that bronze is configured, you need to evaluate its bootstrap code.

~/.bashrc/~/.zshrc:

eval "$(bronze init)"

~/.config/fish/config.fish:

eval (bronze init)

Documentation

Documentation is available on the wiki.

Project structure

Similar projects

powerline-go