Starship Prompt Builder

Spack module

Shows the current Spack environment, if $SPACK_ENV is set

When it appears

It renders when Starship detects the matching context and its configured conditions are met.

Preview

Rendered from the starting configuration in a representative simulated environment.

starship — preview
via 🅢 1 

Starting configuration

[spack]
format = "via [$symbol$environment]($style) "
symbol = "🅢 "
style = "blue bold"
Open in the builder

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

Key options

truncation_lengthnumber
The number of directories the environment path should be truncated to. 0 means no truncation. Also see the directory module.
formatstring
The format for the module.
symbolstring
The symbol used before the environment name.
stylestring
The style for the module.
disabledboolean
Disables the spack module.

Format variables

$environment
The current spack environment
$style
Mirrors the value of option style
$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.