Crates.io | xprompt |
lib.rs | xprompt |
version | 0.2.3 |
source | src |
created_at | 2020-10-30 01:12:38.61068 |
updated_at | 2021-12-27 00:44:20.903546 |
description | Display a colorful Bash prompt |
homepage | https://github.com/56quarters/xprompt |
repository | https://github.com/56quarters/xprompt |
max_upload_size | |
id | 306841 |
size | 73,963 |
Display a colorful Bash prompt.
xprompt
is a CLI tool for displaying something that can be used as a PS1
or
PS2
value for your Bash prompt.
xprompt is a Rust project. If you want to install it, you'll need the Rust toolchain. For more information about how to install Rust see https://www.rustup.rs/
After you have Rust installed, you can use Cargo to install xprompt.
cargo install --force xprompt
xprompt --help
To use xprompt
to set your Bash prompt, add the following to your .bashrc
or
.bash_profile
files in your home directory.
eval "$(xprompt init)"
Or, if you'd rather not eval
things.
PS1="$(xprompt ps1)"
export PS1
PS2="$(xprompt ps2)"
export PS2
That's all you need!
Currently, xprompt is hardcoded to emit a prompt how I want. It's not configurable in any way regarding colors, style, or information displayed. This is unlikely to change. If you want a prompt that is more configurable, you should take a look at Jess Fraz's dot files, which the style of xprompt is based on, or the Starship project.
The source code is available on GitHub at https://github.com/56quarters/xprompt
Release notes for xprompt can be found in the CHANGES.md file.
xprompt uses Cargo for performing various development tasks.
To build Staccato:
$ cargo build
To run tests:
$ cargo test
To run benchmarks:
$ cargo bench
To build documentation:
$ cargo doc
xprompt is available under the terms of the GPL, version 3.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be licensed as above, without any additional terms or conditions.
The style of this prompt is based on Jess Fraz's Bash dot files.