Skip to content
This repository has been archived by the owner on Jun 12, 2021. It is now read-only.
/ bronze Public archive

A cross-shell customizable powerline-like prompt with icons

License

Notifications You must be signed in to change notification settings

reujab/bronze

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0713e98 · Jul 24, 2017
Jul 24, 2017
Jul 18, 2017
Jul 19, 2017
Jul 13, 2017
Jul 19, 2017
Jul 20, 2017
Jul 20, 2017
Jul 22, 2017
Jul 18, 2017
Jul 13, 2017
Jul 13, 2017
Jul 19, 2017
Jul 13, 2017
Jul 12, 2017
Jul 19, 2017
Jul 20, 2017
Jul 19, 2017
Jul 19, 2017
Jul 19, 2017
Jul 19, 2017
Jul 11, 2017
Jul 21, 2017
Jul 11, 2017
Jul 19, 2017
Jul 18, 2017
Jul 19, 2017

Repository files navigation

bronze

A cross-shell customizable powerline-like prompt heavily inspired by Agnoster.

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.

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.

If you use Bash or Zsh, add this to your ~/.bashrc/~/.zshrc:

eval "$(bronze init)"

If you use fish, add this to your ~/.config/fish/config.fish:

eval (bronze init)

Ensure that bronze is in your PATH.

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 shortdir:blue:black git:green:black cmdtime:magenta:black)

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

set BRONZE status:black:white shortdir:blue:black git:green:black cmdtime:magenta:black

Documentation

Documentation on every module is available on the wiki.