oh-my-posh/docs/docs/segment-dotnet.md
Travis Illig 5844faa54d feat: dotnet segment for .NET SDK display
New segment for .NET SDK version (or unsupported version) display.

Includes update for handling command execution errors so segments
can act differently based on exit codes. Using a custom error
type to make it testable rather than passing the OS error directly
to the segment.
2020-10-16 11:39:01 -07:00

712 B

id title sidebar_label
dotnet Dotnet Dotnet

What

Display the currently active .NET SDK version.

Sample Configuration

{
  "type": "dotnet",
  "style": "powerline",
  "powerline_symbol": "",
  "foreground": "#000000",
  "background": "#00ffff",
  "properties": {
    "prefix": " \uE77F "
  }
}

Properties

  • display_version: boolean - display the active version or not; useful if all you need is an icon indicating dotnet is present - defaults to true
  • unsupported_version_icon: string - text/icon that is displayed when the active .NET SDK version (e.g., one specified by global.json) is not installed/supported - defaults to \u2327 (X in a rectangle box)