2020-11-23 10:34:24 -08:00
|
|
|
{
|
|
|
|
"$schema": "http://json-schema.org/draft-07/schema",
|
|
|
|
"$id": "http://example.com/example.json",
|
|
|
|
"type": "object",
|
2021-06-05 10:27:33 -07:00
|
|
|
"title": "The Oh My Posh theme definition",
|
2020-11-23 10:34:24 -08:00
|
|
|
"description": "https://ohmyposh.dev/docs/configure",
|
|
|
|
"definitions": {
|
|
|
|
"color": {
|
|
|
|
"type": "string",
|
2020-12-17 23:59:45 -08:00
|
|
|
"pattern": "^(#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})|black|red|green|yellow|blue|magenta|cyan|white|default|darkGray|lightRed|lightGreen|lightYellow|lightBlue|lightMagenta|lightCyan|lightWhite|transparent)$",
|
2020-11-23 10:34:24 -08:00
|
|
|
"title": "Color string",
|
2021-02-21 23:16:00 -08:00
|
|
|
"description": "https://ohmyposh.dev/docs/configure#colors",
|
|
|
|
"format": "color"
|
2020-11-23 10:34:24 -08:00
|
|
|
},
|
2021-02-15 03:58:03 -08:00
|
|
|
"color_templates": {
|
|
|
|
"type": "array",
|
|
|
|
"title": "Templates to define a color",
|
|
|
|
"description": "https://ohmyposh.dev/docs/configure#foreground-templates",
|
|
|
|
"default": [],
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
2020-11-23 10:34:24 -08:00
|
|
|
"display_version": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Display Version",
|
|
|
|
"description": "Show or hide the version number",
|
|
|
|
"default": true
|
|
|
|
},
|
2020-12-27 23:33:58 -08:00
|
|
|
"display_mode": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Display Mode",
|
|
|
|
"description": "Determines whether the segment is displayed always or only if a file matching the extensions are present in the current folder",
|
2021-01-15 10:28:46 -08:00
|
|
|
"enum": ["always", "files", "environment", "context"],
|
2020-12-27 23:33:58 -08:00
|
|
|
"default": "context"
|
|
|
|
},
|
|
|
|
"missing_command_text": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Missing command text",
|
|
|
|
"description": "The string to display when the command is not available",
|
|
|
|
"default": ""
|
|
|
|
},
|
2021-02-12 03:49:37 -08:00
|
|
|
"template": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Template text",
|
|
|
|
"description": "The template to use to render the segment text",
|
|
|
|
"default": ""
|
|
|
|
},
|
2020-11-23 10:34:24 -08:00
|
|
|
"block": {
|
|
|
|
"type": "object",
|
|
|
|
"description": "https://ohmyposh.dev/docs/configure#block",
|
|
|
|
"allOf": [
|
2020-12-17 23:59:45 -08:00
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "prompt" }
|
|
|
|
}
|
2020-11-23 10:34:24 -08:00
|
|
|
},
|
2020-12-17 23:59:45 -08:00
|
|
|
"then": {
|
2020-11-23 10:34:24 -08:00
|
|
|
"required": ["type", "alignment", "segments"],
|
|
|
|
"title": "Prompt definition, contains 1 or more segments to render"
|
|
|
|
}
|
2020-12-17 23:59:45 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "rprompt" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"required": ["type", "segments"],
|
2020-12-15 05:58:15 -08:00
|
|
|
"title": "RPrompt definition, contains 1 or more segments to render to the right of the cursor"
|
2020-12-17 23:59:45 -08:00
|
|
|
}
|
2020-11-23 10:34:24 -08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"type": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Block type",
|
|
|
|
"description": "https://ohmyposh.dev/docs/configure#type",
|
2021-04-18 10:16:06 -07:00
|
|
|
"enum": ["prompt", "rprompt"],
|
2020-11-23 10:34:24 -08:00
|
|
|
"default": "prompt"
|
|
|
|
},
|
|
|
|
"alignment": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Block alignment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/configure#alignment",
|
|
|
|
"enum": ["left", "right"],
|
|
|
|
"default": "left"
|
|
|
|
},
|
2021-04-18 10:16:06 -07:00
|
|
|
"newline": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Newline",
|
|
|
|
"description": "https://ohmyposh.dev/docs/configure#newline",
|
|
|
|
"default": false
|
|
|
|
},
|
2020-11-23 10:34:24 -08:00
|
|
|
"vertical_offset": {
|
|
|
|
"type": "integer",
|
|
|
|
"title": "Block vertical offset",
|
|
|
|
"description": "https://ohmyposh.dev/docs/configure#vertical-offset"
|
|
|
|
},
|
|
|
|
"horizontal-offset": {
|
|
|
|
"type": "integer",
|
|
|
|
"title": "Block vertical offset",
|
|
|
|
"description": "https://ohmyposh.dev/docs/configure#horizontal-offset"
|
|
|
|
},
|
|
|
|
"segments": {
|
|
|
|
"type": "array",
|
|
|
|
"title": "Segments list, prompt elements to display based on context",
|
|
|
|
"description": "https://ohmyposh.dev/docs/configure#segment",
|
|
|
|
"default": [],
|
|
|
|
"items": { "$ref": "#/definitions/segment" }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"segment": {
|
|
|
|
"type": "object",
|
|
|
|
"title": "A segment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/configure#segment",
|
|
|
|
"default": {},
|
2021-02-15 03:58:03 -08:00
|
|
|
"required": ["type", "style"],
|
2020-11-23 10:34:24 -08:00
|
|
|
"properties": {
|
|
|
|
"type": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Segment Type",
|
|
|
|
"description": "https://ohmyposh.dev/docs/configure#type-1",
|
|
|
|
"enum": [
|
|
|
|
"session",
|
|
|
|
"path",
|
|
|
|
"git",
|
|
|
|
"exit",
|
|
|
|
"python",
|
|
|
|
"root",
|
|
|
|
"time",
|
|
|
|
"text",
|
|
|
|
"command",
|
|
|
|
"battery",
|
|
|
|
"spotify",
|
|
|
|
"shell",
|
|
|
|
"node",
|
|
|
|
"os",
|
|
|
|
"envvar",
|
|
|
|
"az",
|
|
|
|
"kubectl",
|
|
|
|
"dotnet",
|
|
|
|
"terraform",
|
|
|
|
"go",
|
2020-11-19 19:12:20 -08:00
|
|
|
"julia",
|
2020-10-25 08:32:14 -07:00
|
|
|
"ruby",
|
2020-12-06 13:03:40 -08:00
|
|
|
"ytm",
|
2021-02-12 03:49:37 -08:00
|
|
|
"executiontime",
|
2021-03-17 00:16:19 -07:00
|
|
|
"aws",
|
2021-03-27 09:04:09 -07:00
|
|
|
"java",
|
2021-04-11 11:07:41 -07:00
|
|
|
"poshgit",
|
2021-05-14 04:39:49 -07:00
|
|
|
"azfunc",
|
2021-05-14 12:26:26 -07:00
|
|
|
"crystal",
|
|
|
|
"dart"
|
2020-11-23 10:34:24 -08:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"style": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Segment Style",
|
|
|
|
"description": "https://ohmyposh.dev/docs/configure#style",
|
|
|
|
"enum": ["powerline", "plain", "diamond"]
|
|
|
|
},
|
|
|
|
"foreground": { "$ref": "#/definitions/color" },
|
2021-02-15 03:58:03 -08:00
|
|
|
"foreground_templates": { "$ref": "#/definitions/color_templates" },
|
2020-11-23 10:34:24 -08:00
|
|
|
"background": { "$ref": "#/definitions/color" },
|
2021-02-15 03:58:03 -08:00
|
|
|
"background_templates": { "$ref": "#/definitions/color_templates" },
|
2020-11-23 10:34:24 -08:00
|
|
|
"properties": {
|
|
|
|
"type": "object",
|
|
|
|
"title": "Segment Properties, used to change behavior/displaying",
|
|
|
|
"description": "https://ohmyposh.dev/docs/configure#properties",
|
|
|
|
"default": {},
|
|
|
|
"properties": {
|
|
|
|
"prefix": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Text prefix",
|
|
|
|
"description": "https://ohmyposh.dev/docs/configure#prefix",
|
|
|
|
"default": " "
|
|
|
|
},
|
|
|
|
"postfix": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Text postfix",
|
|
|
|
"description": "https://ohmyposh.dev/docs/configure#postfix",
|
|
|
|
"default": " "
|
|
|
|
},
|
2021-02-27 20:05:51 -08:00
|
|
|
"include_folders": {
|
|
|
|
"type": "array",
|
|
|
|
"title": "If specified, segment will only render in these folders",
|
|
|
|
"description": "https://ohmyposh.dev/docs/configure#include--exclude-folders",
|
|
|
|
"default": [],
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"exclude_folders": {
|
2020-11-23 10:34:24 -08:00
|
|
|
"type": "array",
|
2021-02-27 20:05:51 -08:00
|
|
|
"title": "Exclude rendering in these folders",
|
|
|
|
"description": "https://ohmyposh.dev/docs/configure#include--exclude-folders",
|
2020-11-23 10:34:24 -08:00
|
|
|
"default": [],
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
2021-02-27 20:05:51 -08:00
|
|
|
},
|
|
|
|
"ignore_folders": {
|
|
|
|
"type": "array",
|
|
|
|
"title": "Deprecated - please use `exclude_folders` instead",
|
|
|
|
"description": "https://ohmyposh.dev/docs/configure#include--exclude-folders",
|
|
|
|
"default": [],
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"deprecated": true
|
2020-11-23 10:34:24 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"allOf": [
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"style": { "const": "powerline" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"properties": {
|
|
|
|
"powerline_symbol": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Powerline Symbol",
|
|
|
|
"description": "https://ohmyposh.dev/docs/configure#powerline-symbol",
|
|
|
|
"default": "\uE0B0"
|
|
|
|
},
|
|
|
|
"invert_powerline": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Flip the Powerline symbol vertically",
|
|
|
|
"description": "https://ohmyposh.dev/docs/configure#invert-powerline",
|
|
|
|
"default": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"style": { "const": "diamond" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"properties": {
|
|
|
|
"leading_diamond": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Leading diamond",
|
|
|
|
"description": "https://ohmyposh.dev/docs/configure#leading-diamond",
|
|
|
|
"default": ""
|
|
|
|
},
|
|
|
|
"trailing_diamond": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Trailing diamond",
|
|
|
|
"description": "https://ohmyposh.dev/docs/configure#trailing-diamond",
|
|
|
|
"default": ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "az" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "Azure Segment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/az",
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"display_id": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Display ID",
|
|
|
|
"description": "Display the subscription ID or not",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"display_name": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Display Name",
|
|
|
|
"description": "Display the subscription name or not",
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"info_separator": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Display Name",
|
|
|
|
"description": "Text/icon to put in between the subscription name and ID",
|
|
|
|
"default": " | "
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "battery" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "Battery Segment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/battery",
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"battery_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Battery Icon",
|
|
|
|
"description": "Text/icon to use as a prefix for the battery percentage",
|
|
|
|
"default": ""
|
|
|
|
},
|
|
|
|
"display_error": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Display Error",
|
|
|
|
"description": "Show the error context when failing to retrieve the battery information",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"charging_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Charging Icon",
|
|
|
|
"description": "Text/icon to display on the left when charging",
|
|
|
|
"default": ""
|
|
|
|
},
|
|
|
|
"discharging_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "discharging Dcon",
|
|
|
|
"description": "Text/icon to display on the left when discharging",
|
|
|
|
"default": ""
|
|
|
|
},
|
|
|
|
"charged_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Charged Icon",
|
|
|
|
"description": "Text/icon o display on the left when fully charged",
|
|
|
|
"default": ""
|
|
|
|
},
|
|
|
|
"color_background": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Color Background",
|
|
|
|
"description": "Color the background or foreground",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"charged_color": { "$ref": "#/definitions/color" },
|
|
|
|
"charging_color": { "$ref": "#/definitions/color" },
|
2020-12-03 22:01:08 -08:00
|
|
|
"discharging_color": { "$ref": "#/definitions/color" },
|
|
|
|
"display_charging": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Display while charging",
|
|
|
|
"description": "displays the battery status while charging (Charging or Full)",
|
|
|
|
"default": true
|
2021-04-15 10:58:43 -07:00
|
|
|
},
|
|
|
|
"template": {
|
|
|
|
"$ref": "#/definitions/template"
|
2020-12-03 22:01:08 -08:00
|
|
|
}
|
2020-11-23 10:34:24 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "command" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "Command Segment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/command",
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"shell": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Shell",
|
|
|
|
"description": "The shell in which to run the command in. Uses shell -c command under the hood",
|
|
|
|
"default": "bash"
|
|
|
|
},
|
|
|
|
"command": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Command",
|
|
|
|
"description": "the command(s) to run",
|
|
|
|
"default": "echo no command specified"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "dotnet" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "Dotnet Segment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/dotnet",
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"unsupported_version_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Unsupported Version Icon",
|
|
|
|
"description": "Text/icon that is displayed when the active .NET SDK version (e.g., one specified by global.json) is not installed/supported",
|
|
|
|
"default": " \uE77F "
|
|
|
|
},
|
|
|
|
"display_version": {
|
|
|
|
"$ref": "#/definitions/display_version"
|
2020-12-27 23:33:58 -08:00
|
|
|
},
|
|
|
|
"display_mode": {
|
|
|
|
"$ref": "#/definitions/display_mode"
|
|
|
|
},
|
|
|
|
"missing_command_text": {
|
|
|
|
"$ref": "#/definitions/missing_command_text"
|
2020-11-23 10:34:24 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "envvar" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "Environment Variable Segment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/environment",
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"var_name": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Variable Name",
|
|
|
|
"description": "The name of the environment variable",
|
|
|
|
"default": ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "exit" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "Exit Segment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/exit",
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"display_exit_code": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Display Exit Code",
|
|
|
|
"description": "Show or hide the exit code",
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"always_enabled": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Always Enabled",
|
|
|
|
"description": "Always show the status",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"color_background": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Color Background",
|
|
|
|
"description": "Color the background or foreground",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"error_color": { "$ref": "#/definitions/color" },
|
|
|
|
"always_numeric": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Always Numeric",
|
|
|
|
"description": "Always display the exit code as a number",
|
|
|
|
"default": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "git" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "Git Segment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/git",
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"branch_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Branch Icon",
|
|
|
|
"description": "The icon to use in front of the git branch name",
|
|
|
|
"default": "\uE0A0 "
|
|
|
|
},
|
2021-02-19 10:31:58 -08:00
|
|
|
"display_branch_status": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Display Branch Status",
|
|
|
|
"description": "Display the branch status or not",
|
|
|
|
"default": true
|
|
|
|
},
|
2020-11-23 10:34:24 -08:00
|
|
|
"branch_identical_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Branch Identical Icon",
|
|
|
|
"description": "The icon to display when remote and local are identical",
|
2021-04-24 10:47:54 -07:00
|
|
|
"default": "\u2261"
|
2020-11-23 10:34:24 -08:00
|
|
|
},
|
|
|
|
"branch_ahead_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Branch Ahead Icon",
|
|
|
|
"description": "The icon to display when the local branch is ahead of its remote",
|
2021-04-24 10:47:54 -07:00
|
|
|
"default": "\u2191"
|
2020-11-23 10:34:24 -08:00
|
|
|
},
|
|
|
|
"branch_behind_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Branch Behind Icon",
|
|
|
|
"description": "The icon to display when the local branch is behind its remote",
|
2021-04-24 10:47:54 -07:00
|
|
|
"default": "\u2193"
|
2020-11-23 10:34:24 -08:00
|
|
|
},
|
|
|
|
"branch_gone_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Branch Gone Icon",
|
|
|
|
"description": "The icon to display when there's no remote branch",
|
|
|
|
"default": "\u2262"
|
|
|
|
},
|
|
|
|
"display_status": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Display Status",
|
|
|
|
"description": "Display the local changes or not",
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"display_status_detail": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Display Status Detail",
|
|
|
|
"description": "Display the local changes in detail or not",
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"display_stash_count": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Display Stash Count",
|
|
|
|
"description": "Display the stash count or not",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"status_separator_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Status Separator Icon",
|
|
|
|
"description": "Icon/text to display between staging and working area changes",
|
|
|
|
"default": " | "
|
|
|
|
},
|
|
|
|
"local_working_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Local Working Icon",
|
|
|
|
"description": "The icon to display in front of the working area changes",
|
|
|
|
"default": "\uF044"
|
|
|
|
},
|
|
|
|
"local_staged_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Local Staged Icon",
|
|
|
|
"description": "The icon to display in front of the staged area changes",
|
|
|
|
"default": "\uF046"
|
|
|
|
},
|
|
|
|
"stash_count_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Stash Count Icon",
|
|
|
|
"description": "The icon to display before the stash context",
|
|
|
|
"default": "\uF692"
|
|
|
|
},
|
|
|
|
"commit_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Commit Icon",
|
|
|
|
"description": "Icon/text to display before the commit context (detached HEAD)",
|
|
|
|
"default": "\uF417"
|
|
|
|
},
|
|
|
|
"tag_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Tag Icon",
|
|
|
|
"description": "Icon/text to display before the tag context",
|
|
|
|
"default": "\uF412"
|
|
|
|
},
|
|
|
|
"rebase_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Rebase Icon",
|
|
|
|
"description": "Icon/text to display before the context when in a rebase",
|
|
|
|
"default": "\uE728"
|
|
|
|
},
|
|
|
|
"cherry_pick_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Cherry-pick Icon",
|
|
|
|
"description": "Icon/text to display before the context when doing a cherry-pick",
|
|
|
|
"default": "\uE29B"
|
|
|
|
},
|
|
|
|
"merge_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Merge Icon",
|
|
|
|
"description": "Icon/text to display before the merge context",
|
|
|
|
"default": "\uE727"
|
|
|
|
},
|
|
|
|
"display_upstream_icon": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Display Upstream Icon",
|
|
|
|
"description": "Display upstream icon or not",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"github_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Github Icon",
|
|
|
|
"description": "Icon/text to display when the upstream is Github",
|
|
|
|
"default": "\uF408"
|
|
|
|
},
|
|
|
|
"gitlab_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Gitlab Icon",
|
|
|
|
"description": "Icon/text to display when the upstream is Gitlab",
|
|
|
|
"default": "\uF296"
|
|
|
|
},
|
|
|
|
"bitbucket_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Bitbucket Icon",
|
|
|
|
"description": "Icon/text to display when the upstream is Bitbucket",
|
|
|
|
"default": "\uF171"
|
|
|
|
},
|
2021-05-15 07:47:10 -07:00
|
|
|
"azure_devops_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Azure DevOps Icon",
|
|
|
|
"description": "Icon/text to display when the upstream is Azure DevOps",
|
|
|
|
"default": "\uFD03"
|
|
|
|
},
|
2020-11-23 10:34:24 -08:00
|
|
|
"git_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Git Icon",
|
|
|
|
"description": "Icon/text to display when the upstream is not known/mapped",
|
|
|
|
"default": "\uE5FB"
|
|
|
|
},
|
|
|
|
"working_color": { "$ref": "#/definitions/color" },
|
|
|
|
"staging_color": { "$ref": "#/definitions/color" },
|
|
|
|
"status_colors_enabled": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Status Colors Enabled",
|
|
|
|
"description": "Color the segment based on the repository status",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"color_background": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Color Background",
|
|
|
|
"description": "Color the background or foreground",
|
2021-04-24 10:47:54 -07:00
|
|
|
"default": true
|
2020-11-23 10:34:24 -08:00
|
|
|
},
|
|
|
|
"local_changes_color": {
|
|
|
|
"$ref": "#/definitions/color"
|
|
|
|
},
|
|
|
|
"ahead_and_behind_color": {
|
|
|
|
"$ref": "#/definitions/color"
|
|
|
|
},
|
|
|
|
"behind_color": { "$ref": "#/definitions/color" },
|
|
|
|
"ahead_color": { "$ref": "#/definitions/color" }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "go" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "Golang Segment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/golang",
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"display_version": {
|
|
|
|
"$ref": "#/definitions/display_version"
|
2020-12-27 23:33:58 -08:00
|
|
|
},
|
|
|
|
"display_mode": {
|
2021-05-14 12:26:26 -07:00
|
|
|
"$ref": "#/definitions/display_mode"
|
|
|
|
},
|
|
|
|
"missing_command_text": {
|
|
|
|
"$ref": "#/definitions/missing_command_text"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "dart" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "Dart Segment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/dart",
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"display_version": {
|
|
|
|
"$ref": "#/definitions/display_version"
|
|
|
|
},
|
|
|
|
"display_mode": {
|
2020-12-27 23:33:58 -08:00
|
|
|
"$ref": "#/definitions/display_mode"
|
|
|
|
},
|
|
|
|
"missing_command_text": {
|
|
|
|
"$ref": "#/definitions/missing_command_text"
|
2020-11-23 10:34:24 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-05-14 04:39:49 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "crystal" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "Crystal Segment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/crystal",
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"display_version": {
|
|
|
|
"$ref": "#/definitions/display_version"
|
|
|
|
},
|
|
|
|
"display_mode": {
|
|
|
|
"$ref": "#/definitions/display_mode"
|
|
|
|
},
|
|
|
|
"missing_command_text": {
|
|
|
|
"$ref": "#/definitions/missing_command_text"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-11-23 10:34:24 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "julia" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "Julia Segment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/julia",
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"display_version": {
|
|
|
|
"$ref": "#/definitions/display_version"
|
2020-12-27 23:33:58 -08:00
|
|
|
},
|
|
|
|
"display_mode": {
|
|
|
|
"$ref": "#/definitions/display_mode"
|
|
|
|
},
|
|
|
|
"missing_command_text": {
|
2021-03-17 00:16:19 -07:00
|
|
|
"$ref": "#/definitions/missing_command_text"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "java" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "Julia Segment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/java",
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"display_version": {
|
|
|
|
"$ref": "#/definitions/display_version"
|
|
|
|
},
|
|
|
|
"display_mode": {
|
|
|
|
"$ref": "#/definitions/display_mode"
|
|
|
|
},
|
|
|
|
"missing_command_text": {
|
2020-12-27 23:33:58 -08:00
|
|
|
"$ref": "#/definitions/missing_command_text"
|
2020-11-23 10:34:24 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2020-10-25 08:32:14 -07:00
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "ruby" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "Ruby Segment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/ruby",
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"display_version": {
|
|
|
|
"$ref": "#/definitions/display_version"
|
|
|
|
},
|
|
|
|
"display_mode": {
|
|
|
|
"$ref": "#/definitions/display_mode"
|
|
|
|
},
|
|
|
|
"missing_command_text": {
|
|
|
|
"$ref": "#/definitions/missing_command_text"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2020-11-23 10:34:24 -08:00
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "kubectl" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "Kubectl Segment",
|
2021-02-12 03:49:37 -08:00
|
|
|
"description": "https://ohmyposh.dev/docs/kubectl",
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"template": {
|
|
|
|
"$ref": "#/definitions/template"
|
2021-02-12 12:39:20 -08:00
|
|
|
},
|
|
|
|
"display_error": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Display Error",
|
|
|
|
"description": "Show the error context when failing to retrieve the kubectl information",
|
|
|
|
"default": false
|
2021-02-12 03:49:37 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "aws" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "AWS Segment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/aws",
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"template": {
|
|
|
|
"$ref": "#/definitions/template"
|
2021-03-21 07:04:23 -07:00
|
|
|
},
|
|
|
|
"display_default": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Display Default User Profile",
|
|
|
|
"description": "Display the segment when default user or not",
|
|
|
|
"default": true
|
2021-02-12 03:49:37 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-11-23 10:34:24 -08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "node" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "Node Segment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/node",
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"display_version": {
|
|
|
|
"$ref": "#/definitions/display_version"
|
2021-04-11 11:07:41 -07:00
|
|
|
},
|
|
|
|
"display_mode": {
|
|
|
|
"$ref": "#/definitions/display_mode"
|
|
|
|
},
|
|
|
|
"missing_command_text": {
|
|
|
|
"$ref": "#/definitions/missing_command_text"
|
2021-04-17 04:47:28 -07:00
|
|
|
},
|
|
|
|
"display_package_manager": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Display Package Manager",
|
|
|
|
"description": "Show whether the current project uses Yarn or NPM",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"yarn_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Yarn Icon",
|
|
|
|
"description": "Icon/text to use for Yarn",
|
|
|
|
"default": " \uF61A"
|
|
|
|
},
|
|
|
|
"npm_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "NPM Icon",
|
|
|
|
"description": "Icon/text to use for NPM",
|
|
|
|
"default": " \uE71E"
|
2021-04-11 11:07:41 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "azfunc" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "Azure Function Segment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/azfunc",
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"display_version": {
|
|
|
|
"$ref": "#/definitions/display_version"
|
2020-12-27 23:33:58 -08:00
|
|
|
},
|
|
|
|
"display_mode": {
|
|
|
|
"$ref": "#/definitions/display_mode"
|
|
|
|
},
|
|
|
|
"missing_command_text": {
|
|
|
|
"$ref": "#/definitions/missing_command_text"
|
2020-11-23 10:34:24 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "os" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "Operating System Segment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/os",
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"macos": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "MacOS Icon",
|
|
|
|
"description": "Icon/text to use for macOS",
|
|
|
|
"default": "\uF179"
|
|
|
|
},
|
|
|
|
"linux": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Linux Icon",
|
|
|
|
"description": "Icon/text to use for Linux",
|
|
|
|
"default": "\uF17C"
|
|
|
|
},
|
|
|
|
"windows": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Windows Icon",
|
|
|
|
"description": "Icon/text to use for Windows",
|
|
|
|
"default": "\uE62A"
|
|
|
|
},
|
|
|
|
"wsl": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "WSL Icon",
|
|
|
|
"description": "Icon/text to use for WSL",
|
|
|
|
"default": "WSL"
|
|
|
|
},
|
|
|
|
"wsl_separator": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "WSL Separator",
|
|
|
|
"description": "Icon/text to use for separating WSL from Linux",
|
|
|
|
"default": " - "
|
|
|
|
},
|
2021-02-25 21:51:03 -08:00
|
|
|
"display_distro_name": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Display Distro Name",
|
|
|
|
"description": "Display the distro name or icon or not",
|
|
|
|
"default": false
|
|
|
|
},
|
2020-11-23 10:34:24 -08:00
|
|
|
"alpine": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Alpine Icon",
|
|
|
|
"description": "The icon to use for Alpine",
|
|
|
|
"default": "\uF300"
|
|
|
|
},
|
|
|
|
"aosc": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Aosc Icon",
|
|
|
|
"description": "The icon to use for Aosc",
|
|
|
|
"default": "\uF301"
|
|
|
|
},
|
|
|
|
"arch": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Arch Icon",
|
|
|
|
"description": "The icon to use for Arch",
|
|
|
|
"default": "\uF303"
|
|
|
|
},
|
|
|
|
"centos": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Centos Icon",
|
|
|
|
"description": "The icon to use for Centos",
|
|
|
|
"default": "\uF303"
|
|
|
|
},
|
|
|
|
"coreos": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Coreos Icon",
|
|
|
|
"description": "The icon to use for Coreos",
|
|
|
|
"default": "\uF305"
|
|
|
|
},
|
|
|
|
"debian": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Debian Icon",
|
|
|
|
"description": "The icon to use for Debian",
|
|
|
|
"default": "\uF306"
|
|
|
|
},
|
|
|
|
"devuan": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Devuan Icon",
|
|
|
|
"description": "The icon to use for Devuan",
|
|
|
|
"default": "\uF307"
|
|
|
|
},
|
|
|
|
"raspbian": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Raspbian Icon",
|
|
|
|
"description": "The icon to use for Raspbian",
|
|
|
|
"default": "\uF315"
|
|
|
|
},
|
|
|
|
"elementary": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Elementary Icon",
|
|
|
|
"description": "The icon to use for Elementary",
|
|
|
|
"default": "\uF309"
|
|
|
|
},
|
|
|
|
"fedora": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Fedora Icon",
|
|
|
|
"description": "The icon to use for Fedora",
|
|
|
|
"default": "\uF30a"
|
|
|
|
},
|
|
|
|
"gentoo": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Gentoo Icon",
|
|
|
|
"description": "The icon to use for Gentoo",
|
|
|
|
"default": "\uF30d"
|
|
|
|
},
|
|
|
|
"mageia": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Mageia Icon",
|
|
|
|
"description": "The icon to use for Mageia",
|
|
|
|
"default": "\uF310"
|
|
|
|
},
|
|
|
|
"manjaro": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Manjaro Icon",
|
|
|
|
"description": "The icon to use for Manjaro",
|
|
|
|
"default": "\uF312"
|
|
|
|
},
|
|
|
|
"mint": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Mint Icon",
|
|
|
|
"description": "The icon to use for Mint",
|
|
|
|
"default": "\uF30e"
|
|
|
|
},
|
|
|
|
"nixos": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Nixos Icon",
|
|
|
|
"description": "The icon to use for Nixos",
|
|
|
|
"default": "\uF313"
|
|
|
|
},
|
|
|
|
"opensuse": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Opensuse Icon",
|
|
|
|
"description": "The icon to use for Opensuse",
|
|
|
|
"default": "\uF314"
|
|
|
|
},
|
|
|
|
"sabayon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Sabayon Icon",
|
|
|
|
"description": "The icon to use for Sabayon",
|
|
|
|
"default": "\uF317"
|
|
|
|
},
|
|
|
|
"slackware": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Slackware Icon",
|
|
|
|
"description": "The icon to use for Slackware",
|
|
|
|
"default": "\uF319"
|
|
|
|
},
|
|
|
|
"ubuntu": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Ubuntu Icon",
|
|
|
|
"description": "The icon to use for Ubuntu",
|
|
|
|
"default": "\uF31b"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "path" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "Path Segment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/path",
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"folder_separator_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Folder Separator Icon",
|
|
|
|
"description": "The symbol to use as a separator between folders",
|
|
|
|
"default": "/"
|
|
|
|
},
|
|
|
|
"home_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Home Icon",
|
|
|
|
"description": "The icon to display when at $HOME",
|
|
|
|
"default": "/"
|
|
|
|
},
|
|
|
|
"folder_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Folder Icon",
|
|
|
|
"description": "The con to use as a folder indication",
|
|
|
|
"default": ".."
|
|
|
|
},
|
|
|
|
"windows_registry_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Windows Registry Icon",
|
|
|
|
"description": "The icon to display when in the Windows registry",
|
|
|
|
"default": "\uE0B1"
|
|
|
|
},
|
|
|
|
"style": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "The Path Style",
|
|
|
|
"description": "How to display the current path",
|
|
|
|
"enum": [
|
|
|
|
"agnoster",
|
|
|
|
"agnoster_full",
|
2020-12-17 03:10:01 -08:00
|
|
|
"agnoster_short",
|
2020-11-23 10:34:24 -08:00
|
|
|
"short",
|
|
|
|
"full",
|
2021-02-28 00:32:06 -08:00
|
|
|
"folder",
|
|
|
|
"mixed"
|
2020-11-23 10:34:24 -08:00
|
|
|
],
|
|
|
|
"default": "folder"
|
|
|
|
},
|
|
|
|
"mapped_locations": {
|
2021-06-07 23:31:35 -07:00
|
|
|
"type": "object",
|
2020-11-23 10:34:24 -08:00
|
|
|
"title": "Mapped Locations",
|
|
|
|
"description": "Custom glyph/text for specific paths",
|
2021-06-07 23:31:35 -07:00
|
|
|
"default": {}
|
2020-11-23 10:34:24 -08:00
|
|
|
}
|
2021-06-08 11:28:56 -07:00
|
|
|
},
|
|
|
|
"mapped_locations_enabled": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Enable the Mapped Locations feature",
|
|
|
|
"description": "Replace known locations in the path with the replacements before applying the style.",
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"enable_hyperlink": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Enable hyperlink",
|
|
|
|
"description": "Displays an hyperlink for the current path",
|
|
|
|
"default": false
|
|
|
|
},
|
|
|
|
"stack_count_enabled": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Show/hide stack count",
|
|
|
|
"description": "Displays the stack count when using pushd/popd",
|
|
|
|
"default": false
|
2020-11-23 10:34:24 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "python" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
2021-03-21 07:04:23 -07:00
|
|
|
"title": "Python Segment",
|
2020-11-23 10:34:24 -08:00
|
|
|
"description": "https://ohmyposh.dev/docs/python",
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"display_version": {
|
|
|
|
"$ref": "#/definitions/display_version"
|
|
|
|
},
|
2021-03-21 07:04:23 -07:00
|
|
|
"display_default": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Display Default Env",
|
|
|
|
"description": "Show the name of the virtualenv when it's default (`system`, `base`)",
|
|
|
|
"default": true
|
|
|
|
},
|
2020-11-23 10:34:24 -08:00
|
|
|
"display_virtual_env": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Display Virtual Env",
|
|
|
|
"description": "Show the name of the virtualenv or not",
|
|
|
|
"default": true
|
2020-12-21 11:16:33 -08:00
|
|
|
},
|
|
|
|
"display_mode": {
|
2020-12-27 23:33:58 -08:00
|
|
|
"$ref": "#/definitions/display_mode"
|
|
|
|
},
|
|
|
|
"missing_command_text": {
|
|
|
|
"$ref": "#/definitions/missing_command_text"
|
2020-11-23 10:34:24 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "root" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "Root Segment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/root",
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"root_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Root Icon",
|
|
|
|
"description": "The icon to display in case of root/elevated",
|
|
|
|
"default": "\uF0E7"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "session" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "Session Segment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/session",
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"user_info_separator": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "User Info Separator",
|
|
|
|
"description": "Text/icon to put in between the user and host name",
|
|
|
|
"default": "@"
|
|
|
|
},
|
|
|
|
"ssh_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "SSH Icon",
|
|
|
|
"description": "Text/icon to display first when in an active SSH session",
|
|
|
|
"default": "\uF817"
|
|
|
|
},
|
|
|
|
"user_color": { "$ref": "#/definitions/color" },
|
|
|
|
"host_color": { "$ref": "#/definitions/color" },
|
|
|
|
"display_user": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Display User",
|
|
|
|
"description": "Display the user name or not",
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"display_host": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Display Host",
|
|
|
|
"description": "Display the host name or not",
|
|
|
|
"default": true
|
2020-12-02 10:00:46 -08:00
|
|
|
},
|
|
|
|
"default_user_name": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Default User Name",
|
|
|
|
"description": "The name of the default user",
|
|
|
|
"default": ""
|
|
|
|
},
|
2021-03-21 07:04:23 -07:00
|
|
|
"display_default": {
|
2020-12-02 10:00:46 -08:00
|
|
|
"type": "boolean",
|
|
|
|
"title": "Display Default User",
|
|
|
|
"description": "Display the segment when default user or not",
|
|
|
|
"default": true
|
2020-11-23 10:34:24 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "shell" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "Shell Segment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/shell"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "spotify" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "Spotify Segment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/spotify",
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"playing_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "User Info Separator",
|
|
|
|
"description": "Text/icon to show when playing",
|
|
|
|
"default": "\uE602"
|
|
|
|
},
|
|
|
|
"paused_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "SSH Icon",
|
|
|
|
"description": "Text/icon to show when paused",
|
|
|
|
"default": "\uF8E3"
|
|
|
|
},
|
|
|
|
"stopped_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "SSH Icon",
|
|
|
|
"description": "Text/icon to show when stopped",
|
|
|
|
"default": "\uF04D"
|
|
|
|
},
|
|
|
|
"track_separator": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "SSH Icon",
|
|
|
|
"description": "Text/icon to put between the artist and song name",
|
|
|
|
"default": " - "
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "terraform" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "Terraform Segment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/terraform"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "text" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "Text Segment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/text",
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"text": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Text",
|
|
|
|
"description": "Text/icon to display",
|
|
|
|
"default": ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "time" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "Time Segment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/time",
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"time_format": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Time Format",
|
|
|
|
"description": "Format to use, follows the golang standard: https://gobyexample.com/time-formatting-parsing",
|
|
|
|
"default": "15:04:05"
|
2021-03-16 03:36:05 -07:00
|
|
|
},
|
|
|
|
"template": {
|
|
|
|
"$ref": "#/definitions/template"
|
2020-11-23 10:34:24 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-11-19 19:12:20 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "ytm" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "YouTube Music Desktop App Segment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/ytm",
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"playing_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "User Info Separator",
|
|
|
|
"description": "Text/icon to show when playing",
|
|
|
|
"default": "\uE602"
|
|
|
|
},
|
|
|
|
"paused_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "SSH Icon",
|
|
|
|
"description": "Text/icon to show when paused",
|
|
|
|
"default": "\uF8E3"
|
|
|
|
},
|
|
|
|
"stopped_icon": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "SSH Icon",
|
|
|
|
"description": "Text/icon to show when stopped",
|
|
|
|
"default": "\uF04D"
|
|
|
|
},
|
|
|
|
"track_separator": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "SSH Icon",
|
|
|
|
"description": "Text/icon to put between the artist and song name",
|
|
|
|
"default": " - "
|
|
|
|
},
|
|
|
|
"api_url": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "API URL",
|
|
|
|
"description": "The YTMDA Remote Control API URL",
|
2021-04-20 12:35:22 -07:00
|
|
|
"default": "http://127.0.0.1:9863"
|
2020-11-19 19:12:20 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-12-06 13:03:40 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "executiontime" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "Displays the execution time of the previously executed command",
|
|
|
|
"description": "https://ohmyposh.dev/docs/executiontime",
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
|
|
|
"properties": {
|
2020-12-12 03:53:06 -08:00
|
|
|
"always_enabled": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Always Enabled",
|
|
|
|
"description": "Always show the duration",
|
|
|
|
"default": false
|
|
|
|
},
|
2020-12-06 13:03:40 -08:00
|
|
|
"threshold": {
|
|
|
|
"type": "number",
|
|
|
|
"title": "Threshold",
|
|
|
|
"description": "minimum duration (milliseconds) required to enable this segment",
|
|
|
|
"default": 500
|
2020-12-10 07:02:45 -08:00
|
|
|
},
|
|
|
|
"style": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Style",
|
|
|
|
"description": "The style in which the time will be displayed",
|
|
|
|
"enum": [
|
|
|
|
"austin",
|
|
|
|
"roundrock",
|
|
|
|
"dallas",
|
|
|
|
"galveston",
|
|
|
|
"houston",
|
2021-05-20 23:22:21 -07:00
|
|
|
"amarillo",
|
|
|
|
"round"
|
2020-12-10 07:02:45 -08:00
|
|
|
],
|
|
|
|
"default": "austin"
|
2020-12-06 13:03:40 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-03-27 09:04:09 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"if": {
|
|
|
|
"properties": {
|
|
|
|
"type": { "const": "poshgit" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"then": {
|
|
|
|
"title": "Posh-Git Segment",
|
|
|
|
"description": "https://ohmyposh.dev/docs/poshgit"
|
|
|
|
}
|
2020-11-23 10:34:24 -08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": ["blocks"],
|
|
|
|
"properties": {
|
|
|
|
"final_space": {
|
|
|
|
"type": "boolean",
|
2020-12-27 02:56:33 -08:00
|
|
|
"title": "Final Space",
|
|
|
|
"description": "https://ohmyposh.dev/docs/configure#general-settings",
|
2020-11-23 10:34:24 -08:00
|
|
|
"default": true
|
|
|
|
},
|
2021-02-15 13:19:19 -08:00
|
|
|
"osc99": {
|
|
|
|
"type": "boolean",
|
|
|
|
"title": "Enable OSC99",
|
|
|
|
"description": "https://ohmyposh.dev/docs/configure#general-settings",
|
|
|
|
"default": false
|
|
|
|
},
|
2020-11-23 10:34:24 -08:00
|
|
|
"console_title": {
|
|
|
|
"type": "boolean",
|
2020-12-27 02:56:33 -08:00
|
|
|
"title": "Console Title",
|
|
|
|
"description": "https://ohmyposh.dev/docs/configure#general-settings",
|
2020-11-23 10:34:24 -08:00
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"console_title_style": {
|
|
|
|
"type": "string",
|
2020-12-27 02:56:33 -08:00
|
|
|
"title": "Console Title Style",
|
|
|
|
"description": "https://ohmyposh.dev/docs/configure#console-title-style",
|
|
|
|
"enum": ["folder", "path", "template"],
|
2020-11-23 10:34:24 -08:00
|
|
|
"default": "folder"
|
|
|
|
},
|
2020-12-27 02:56:33 -08:00
|
|
|
"console_title_template": {
|
|
|
|
"type": "string",
|
|
|
|
"title": "Console Title Template",
|
|
|
|
"description": "https://ohmyposh.dev/docs/configure#console-title-template",
|
|
|
|
"default": "{{ .Shell }} in {{ .Folder }}"
|
|
|
|
},
|
2021-03-14 06:14:08 -07:00
|
|
|
"terminal_background": { "$ref": "#/definitions/color" },
|
2020-11-23 10:34:24 -08:00
|
|
|
"blocks": {
|
|
|
|
"type": "array",
|
|
|
|
"title": "Block array",
|
|
|
|
"default": [],
|
|
|
|
"description": "https://ohmyposh.dev/docs/configure",
|
|
|
|
"items": { "$ref": "#/definitions/block" }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|