Starship Prompt Builder

Network namespace module

Shows the active Linux network namespace

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
๐Ÿ›œ [vpn] 

Starting configuration

[netns]
format = "[$symbol \\[$name\\]]($style) "
symbol = "๐Ÿ›œ"
style = "blue bold dimmed"
Open in the builder

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

Key options

formatstring
The format for the module.
symbolstring
The symbol used before the network namespace (defaults to empty).
stylestring
The style for the module.
disabledboolean
Disables the netns module.

Format variables

$name
The name of the current network namespace
$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.