Starship Prompt Builder

Memory usage module

Shows current system memory and swap usage

When it appears

This module is disabled by default. Enable it, then it renders when Starship detects the matching context.

Preview

Rendered from the starting configuration in a representative simulated environment.

starship โ€” preview
via ๐Ÿ 12GiB/16GiB | 1GiB/4GiB 

Starting configuration

[memory_usage]
disabled = false
format = "via $symbol[$ram( | $swap)]($style) "
symbol = "๐Ÿ "
style = "white bold dimmed"
Open in the builder

The configuration is compressed into the URL fragment and stays in your browser.

Key options

thresholdnumber
Hide the memory usage unless it exceeds this percentage.
formatstring
${swap})]($style) '
stylestring
The style for the module.
symbolstring
The symbol used before displaying the memory usage.
disabledboolean
Disables the memory_usage module.

Format variables

$ram
The usage/total RAM of the current system memory.
$ram_pct
The percentage of the current system memory.
$style
Mirrors the value of option style
$swap
The swap memory size of the current system swap memory file.
$swap_pct
The swap memory percentage of the current system swap memory file.
$symbol
Mirrors the value of option symbol

Common adjustments

  • Edit format to reorder its variables or make surrounding text conditional.
  • Adjust its style options to fit the palette used by the rest of the prompt.