Crates.io | statusline |
lib.rs | statusline |
version | |
source | src |
created_at | 2023-07-25 01:55:18.118454 |
updated_at | 2024-12-03 11:57:51.311558 |
description | Simple and fast bash PS1 line with useful features |
homepage | |
repository | https://codeberg.org/yuki0iq/statusline |
max_upload_size | |
id | 925089 |
Cargo.toml error: | TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
A blazingly-fast successor to purplesyringa's shell, rewritten in Rust.
Install rustup and nightly rust.
pacman -S rustup
rustup toolchain add nightly
Visit rustup.rs if not on Arch-based distro to see how to install on other distros. You may need to run rustup installation with superuser rights
Install statusline from cargo
cargo +nightly install statusline
Check if statusline is in path.
statusline
If "bash: statusline: command not found" is shown, check your $PATH and ~/.bashrc, a folder where cargo install placed statusline binary should be there.
If you wish to not add the directory to $PATH, you can just use full path instead of short one
in statusline --env
below
Set preferred statusline icons' mode. Do not add this line for defaults! Available modes are:
PS1_MODE=text
: use ASCII text instead of iconsPS1_MODE=minimal
: use alternative icon set which is somewhat simpler but may be perplexingecho 'export PS1_MODE=minimal' >> ~/.bashrc
Install the statusline to shell
echo 'eval "$(statusline --env)"' >> ~/.bashrc
Apply changes immediately
source ~/.bashrc
Don't forget to check PATH and update from time to time.
You may wish to add RUSTFLAGS="-C target-feature=+avx2"
to cargo install statusline
for packaging and distributing reasons. For simple uses, this may be ignored as statusline compiles
itself for current machine by default to maximize possible speed without throwing random SIGILL.
~
,
others' become ~username
. Some paths are ignored to not make any confusionstatusline
Display simple message "how to use". Useless, but may be used to check if statusline is in path
statusline --env
Print commands for `.bashrc`
statusline --run [return_code:N/A [jobs_count:0 [elapsed_time:N/A]]]
Print statusline as PS1 prompt. Is not meant to be invoked directly, however---
Expects third fd to exist, will kill itself when something passed to it
statusline --colorize <str>
Colorize <str> like hostname and username. Can be used to choose hostname which has the color
you want
This should have some better formatting but I'm too lazy for this