Baz plugin for coffee theme in bash prompt https://git.ari.lt/coffee/coffee.baz-plugin
Find a file
Ari Archer 219907b38e
Fix variable localisation
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
2022-10-24 02:30:28 +03:00
plugin/runners Fix variable localisation 2022-10-24 02:30:28 +03:00
.gitattributes first commit 2022-05-17 22:01:07 +03:00
baz.env Fix variable localisation 2022-10-24 02:30:28 +03:00
LICENSE first commit 2022-05-17 22:01:07 +03:00
README.md Add more info to readme 2022-06-08 20:43:36 +03:00
screenshot.jpg first commit 2022-05-17 22:01:07 +03:00

Baz plugin: coffee.baz-plugin

Baz plugin for coffee theme in bash prompt

Installation

$ baz install git 'https://github.com/coffee-theme/coffee.baz-plugin'

Dependencies

  • GNU coreutils
  • (Optional) git -- show git branch
  • (Optional) virtualenv -- show current virtual environment

Looks

Screenshot

Customisation

  • COFFEE_ROOT_CHAR -- The character to use for the root user as the prompt [#]
  • COFFEE_CLR_USER -- The colour to use for the normal user [green]
  • COFFEE_USER_CHAR -- The character to use for the normal user as the prompt [%]
  • COFFEE_CLR_ERR -- The error colour [red]
  • COFFEE_CLR_VENV -- The colour to use for virtual environments [green]
  • COFFEE_CLR_ROOT -- The user colour for the root user [red]

Colours

The colours are not automatically escaped, to escape them you can use printf or smt:

E.g.

export COFFEE_CLR_USER="$(printf "\033[0;33m")"