| Crates.io | ps1g |
| lib.rs | ps1g |
| version | 0.0.1 |
| created_at | 2025-06-16 18:04:33.75498+00 |
| updated_at | 2025-06-16 18:04:33.75498+00 |
| description | prompt generator |
| homepage | https://github.com/gabrielfalcao/ps1g |
| repository | https://github.com/gabrielfalcao/ps1g |
| max_upload_size | |
| id | 1714601 |
| size | 109,126 |
Generate configurable colorful PS1 prompt generator for bash
~/.config/ps1.toml with the following content:ps1='{220}\u{137}:{220}{cwd:name}{37}{git:branch}{220}${reset}'
.bashrc:eval "$(~/.cargo/bin/ps1 --env)"
{fg:number} or {number} where number is 0 - 255 - set foreground color
{bg:number} where number is 0 - 255 - set background color
{reset} reset colors
{cwd:name}
{git:branch}
Formal parsing of PS1 escape
sequences
and {custom:params} is done through the PEG grammar is defined at
src/grammar.pest