| Crates.io | auraline |
| lib.rs | auraline |
| version | 0.6.4 |
| created_at | 2025-09-19 05:56:23.006169+00 |
| updated_at | 2026-01-11 15:27:43.861407+00 |
| description | utility that renders information into a string suitable to be embedded in the shell prompt. |
| homepage | |
| repository | https://github.com/awgn/auraline |
| max_upload_size | |
| id | 1845831 |
| size | 130,659 |
auraline is a utility that renders information into a string suitable to be embedded
in the shell prompt. It is written in Rust.
To build the package run the following commands:
cargo install --path .
This will build and install the binary auraline in the Cargo bin directory (e.g., ~/.cargo/bin/).
To statically build auraline, you can use the following command:
RUSTFLAGS='-C target-feature=+crt-static' cargo build --release
cargo install --path .
This command will instruct Cargo to build auraline with static linking, which will create a static binary. The binary will include all necessary dependencies, making it more self-contained and easier to distribute.
Usage: auraline <COMMAND>
Commands:
prompt
init
Options:
--help Print help information
-V, --version Print version
The prompt command generates the prompt string that can be embedded in your shell prompt.
Usage: auraline prompt [OPTIONS]
Options:
--help Print help information
-u, --user Basic user info
-r, --realname Basic realname info
-h, --hostname Basic hostname info
-d, --device-name Basic devicename info
-D, --distro Basic distro info
-w, --pwd Current working directory
-W, --full-pwd Current working directory (full path)
-v, --vcs Show VCS info (git, hg, jj, etc.)
-s, --ssh Show SSH info
-o, --os Show OS info
-V, --virt Show virtual env info
-n, --netif Show network interfaces
-N, --netns Show network namespace info
-m, --memory Show memory usage info
-H, --huge-pages Show HugePages info
-M, --manifest Show development package info in the current directory
-e, --duration Show the duration of the last command)
--exit-code <EXIT_CODE> Specify the exit-code of the last command to show
--timings Enable timings mode (dev)
--theme <THEME> Specify the theme color
--nerd-font Use Nerd Fonts
You can integrate auraline into your shell prompt by adding the command to your shell configuration file (e.g., .bashrc, .zshrc, etc.).
export AURALINE_PROFILE=nerdy
export AURALINE_THEME=blue
eval "$(auraline init bash)"
export AURALINE_PROFILE=nerdy
export AURALINE_THEME=blue
eval "$(auraline init bash)"
The AURALINE_PROFILE environment variable allows you to select a predefined profile for the prompt.
You can choose from the following profiles:
minimal: A minimalistic prompt with only the most essential information (used as default)lean: A balanced prompt with a moderate amount of information. Doesn't require Nerd Fonts.nerdy: A more detailed prompt with additional information and Nerd Font icons.The --theme option (AURALINE_THEME asl well) allows you to customize the color of the prompt.
You can use one of the predefined color names or a true color value.
You can use any of the following predefined color names:
blackredgreenyellowbluemagentacyanwhitepurplebright_blackbright_redbright_greenbright_yellowbright_bluebright_magentabright_cyanbright_whiteExample:
auraline --theme red
You can also specify a true color value in the format r,g,b, where r, g, and b are integers from 0 to 255.
Example:
auraline --theme 128,0,128
auraline supports a wide range of information providers that can be displayed in your prompt. Each provider can be enabled using the corresponding command-line option.
-u, --user): Current username-r, --realname): User's real name-h, --hostname): System hostname-d, --device-name): Device name-D, --distro): Linux distribution name-w, --pwd): Current working directory (with ~ expansion)-W, --full-pwd): Current working directory (absolute path)The VCS provider (-v, --vcs) automatically detects and displays information from the following version control systems:
-o, --os): Operating system icon (supports 60+ Linux distributions, BSD variants, macOS, Windows)-s, --ssh): SSH connection information (remote IP and port)-m, --memory): Current memory usage percentage-H, --huge-pages): HugePages configuration and allocation (NUMA-aware)-n, --netif): Active network interfaces-N, --netns): Current network namespaceThe virtualization provider (-V, --virt) detects and displays information about:
-M, --manifest): Detects development environment from manifest files (supports 50+ languages and frameworks including Rust, Python, Node.js, Go, Java, C/C++, etc.)-e, --duration): Execution time of the last command--exit-code): Exit code of the last command (shown only on error)The -n or --nerd-font option enables the use of Nerd Fonts for icons and symbols in the prompt.
Make sure you have a Nerd Font installed and configured in your terminal for the symbols to render correctly.