oh-my-posh/themes/schema.json

2558 lines
84 KiB
JSON
Raw Normal View History

2020-11-23 10:34:24 -08:00
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "http://example.com/example.json",
"type": "object",
"title": "The Oh My Posh theme definition",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/overview",
2020-11-23 10:34:24 -08:00
"definitions": {
"color": {
"anyOf": [
2022-05-14 12:18:03 -07:00
{
"$ref": "#/definitions/color_string"
},
{
"$ref": "#/definitions/palette_reference"
}
]
},
"color_string": {
2020-11-23 10:34:24 -08:00
"type": "string",
"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|parentBackground|parentForeground|background|foreground)$",
2020-11-23 10:34:24 -08:00
"title": "Color string",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/colors",
2021-02-21 23:16:00 -08:00
"format": "color"
2020-11-23 10:34:24 -08:00
},
"palette_reference": {
"type": "string",
"pattern": "^p:.*$",
"title": "Palette reference",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/colors#palette"
},
2021-02-15 03:58:03 -08:00
"color_templates": {
"type": "array",
"title": "Templates to define a color",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/colors#color-templates",
2021-02-15 03:58:03 -08:00
"default": [],
"items": {
"$ref": "#/definitions/segment/properties/template"
2021-02-15 03:58:03 -08:00
}
},
"home_enabled": {
"type": "boolean",
"title": "Enable in the HOME folder",
"description": "Display the segment in the HOME folder",
"default": false
},
"fetch_version": {
2020-11-23 10:34:24 -08:00
"type": "boolean",
"title": "Fetch Version",
"description": "Fetch the version number",
2020-11-23 10:34:24 -08:00
"default": true
},
"http_timeout": {
"type": "integer",
2022-01-22 02:41:38 -08:00
"title": "Http request timeout",
"description": "Timeout value to use for http request",
"default": 20
},
"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",
2022-05-14 12:18:03 -07:00
"enum": [
"always",
"files",
"environment",
"context"
],
"default": "context"
},
"missing_command_text": {
"type": "string",
"title": "Missing command text",
"description": "The string to display when the command is not available",
"default": ""
},
"version_url_template": {
"type": "string",
"title": "Version Url Template",
"description": "Template that creates the URL of the version info / release notes",
"default": ""
},
2022-02-19 07:49:26 -08:00
"extra_prompt": {
"type": "object",
"default": {},
"properties": {
"template": {
"type": "string",
"title": "Prompt Template"
},
2022-05-14 12:18:03 -07:00
"foreground": {
"$ref": "#/definitions/color"
},
"foreground_templates": {
"$ref": "#/definitions/color_templates"
},
"background": {
"$ref": "#/definitions/color"
},
"background_templates": {
"$ref": "#/definitions/color_templates"
}
2022-02-19 07:49:26 -08:00
}
},
2020-11-23 10:34:24 -08:00
"block": {
"type": "object",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/block",
2020-11-23 10:34:24 -08:00
"allOf": [
2020-12-17 23:59:45 -08:00
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "prompt"
}
2020-12-17 23:59:45 -08:00
}
2020-11-23 10:34:24 -08:00
},
2020-12-17 23:59:45 -08:00
"then": {
2022-05-14 12:18:03 -07:00
"required": [
"type",
"alignment",
"segments"
],
2020-11-23 10:34:24 -08:00
"title": "Prompt definition, contains 1 or more segments to render"
}
2020-12-17 23:59:45 -08:00
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "rprompt"
}
2020-12-17 23:59:45 -08:00
}
},
"then": {
2022-05-14 12:18:03 -07:00
"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",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/block#type",
2022-05-14 12:18:03 -07:00
"enum": [
"prompt",
"rprompt"
],
2020-11-23 10:34:24 -08:00
"default": "prompt"
},
"alignment": {
"type": "string",
"title": "Block alignment",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/block#alignment",
2022-05-14 12:18:03 -07:00
"enum": [
"left",
"right"
],
2020-11-23 10:34:24 -08:00
"default": "left"
},
"newline": {
"type": "boolean",
"title": "Newline",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/block#newline",
"default": false
},
2020-11-23 10:34:24 -08:00
"vertical_offset": {
"type": "integer",
"title": "Block vertical offset",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/block#vertical-offset"
2020-11-23 10:34:24 -08:00
},
"horizontal-offset": {
"type": "integer",
"title": "Block vertical offset",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/block#horizontal-offset"
2020-11-23 10:34:24 -08:00
},
"segments": {
"type": "array",
"title": "Segments list, prompt elements to display based on context",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/block#segments",
2020-11-23 10:34:24 -08:00
"default": [],
2022-05-14 12:18:03 -07:00
"items": {
"$ref": "#/definitions/segment"
}
2020-11-23 10:34:24 -08:00
}
}
},
"segment": {
"type": "object",
"title": "A segment",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/segment",
2020-11-23 10:34:24 -08:00
"default": {},
2022-05-14 12:18:03 -07:00
"required": [
"type",
"style"
],
2020-11-23 10:34:24 -08:00
"properties": {
"type": {
"type": "string",
"title": "Segment Type",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/segment#type",
2020-11-23 10:34:24 -08:00
"enum": [
"az",
"aws",
"azfunc",
"angular",
"battery",
"command",
"crystal",
"cds",
"cf",
"cftarget",
2020-11-23 10:34:24 -08:00
"dotnet",
"dart",
"exit",
"executiontime",
"git",
2020-11-23 10:34:24 -08:00
"go",
"haskell",
"ipify",
"iterm",
"julia",
2021-03-27 09:04:09 -07:00
"java",
"kubectl",
"kotlin",
"node",
"npm",
"os",
"owm",
"path",
"python",
"poshgit",
"php",
"plastic",
"project",
"root",
"ruby",
"rust",
"r",
"session",
"spotify",
"shell",
"sysinfo",
2021-12-29 23:57:27 -08:00
"strava",
"swift",
"time",
"text",
"terraform",
"ui5tooling",
2021-12-11 08:31:58 -08:00
"wakatime",
2021-11-24 04:47:30 -08:00
"wifi",
"winreg",
"ytm"
2020-11-23 10:34:24 -08:00
]
},
"style": {
"type": "string",
"title": "Segment Style",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/segment#style",
2022-05-14 12:18:03 -07:00
"enum": [
"plain",
"powerline",
"diamond",
"accordion"
]
},
"foreground": {
"$ref": "#/definitions/color"
},
"foreground_templates": {
"$ref": "#/definitions/color_templates"
},
"background": {
"$ref": "#/definitions/color"
},
"background_templates": {
"$ref": "#/definitions/color_templates"
2020-11-23 10:34:24 -08:00
},
2022-03-27 01:12:47 -07:00
"template": {
"type": "string",
"title": "Template text",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/templates",
2022-03-27 01:12:47 -07:00
"default": ""
},
2020-11-23 10:34:24 -08:00
"properties": {
"type": "object",
"title": "Segment Properties, used to change behavior/displaying",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/segment#properties",
2020-11-23 10:34:24 -08:00
"default": {},
"properties": {
2021-02-27 20:05:51 -08:00
"include_folders": {
"type": "array",
"title": "If specified, segment will only render in these folders",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/segment#include--exclude-folders",
2021-02-27 20:05:51 -08:00
"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",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/segment#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",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/segment#include--exclude-folders",
2021-02-27 20:05:51 -08:00
"default": [],
"items": {
"type": "string"
},
"deprecated": true
2020-11-23 10:34:24 -08:00
}
}
2022-05-14 12:18:03 -07:00
},
"interactive": {
"type": "boolean",
"title": "Allow the use of interactive prompt escape sequences",
"description": "https://ohmyposh.dev/docs/configuration/segment#interactive",
"default": false
2020-11-23 10:34:24 -08:00
}
},
"allOf": [
2022-03-11 06:28:25 -08:00
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "project"
}
2022-03-11 06:28:25 -08:00
}
},
"then": {
"title": "Project Segment",
"description": "https://ohmyposh.dev/docs/project"
}
},
2022-03-10 09:41:48 -08:00
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "npm"
}
2022-03-10 09:41:48 -08:00
}
},
"then": {
"title": "NPM Segment",
"description": "https://ohmyposh.dev/docs/npm",
"properties": {
"properties": {
"properties": {
"home_enabled": {
"$ref": "#/definitions/home_enabled"
},
"fetch_version": {
"$ref": "#/definitions/fetch_version"
},
"display_mode": {
"$ref": "#/definitions/display_mode"
},
"missing_command_text": {
"$ref": "#/definitions/missing_command_text"
},
"version_url_template": {
"$ref": "#/definitions/version_url_template"
}
}
}
}
2022-03-10 09:41:48 -08:00
}
},
2020-11-23 10:34:24 -08:00
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"style": {
"const": "powerline"
}
2020-11-23 10:34:24 -08:00
}
},
"then": {
"properties": {
"powerline_symbol": {
"type": "string",
"title": "Powerline Symbol",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/segment#powerline-symbol",
2020-11-23 10:34:24 -08:00
"default": "\uE0B0"
},
"invert_powerline": {
"type": "boolean",
"title": "Flip the Powerline symbol vertically",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/segment#invert-powerline",
2020-11-23 10:34:24 -08:00
"default": false
}
}
}
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"style": {
"const": "diamond"
}
2020-11-23 10:34:24 -08:00
}
},
"then": {
"properties": {
"leading_diamond": {
"type": "string",
"title": "Leading diamond",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/segment#leading-diamond",
2020-11-23 10:34:24 -08:00
"default": ""
},
"trailing_diamond": {
"type": "string",
"title": "Trailing diamond",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/segment#trailing-diamond",
2020-11-23 10:34:24 -08:00
"default": ""
}
}
}
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "az"
}
2020-11-23 10:34:24 -08:00
}
},
"then": {
"title": "Azure Segment",
"description": "https://ohmyposh.dev/docs/az",
"properties": {
"properties": {
"properties": {
"source": {
"type": "string",
"title": "Source",
"description": "https://ohmyposh.dev/docs/az#properties",
"default": "first_match",
2022-05-14 12:18:03 -07:00
"enum": [
"first_match",
"cli",
"pwsh"
]
}
}
}
}
2020-11-23 10:34:24 -08:00
}
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "battery"
}
2020-11-23 10:34:24 -08:00
}
},
"then": {
"title": "Battery Segment",
"description": "https://ohmyposh.dev/docs/battery",
"properties": {
"properties": {
"properties": {
"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 when charging",
2020-11-23 10:34:24 -08:00
"default": ""
},
"discharging_icon": {
"type": "string",
"title": "discharging Dcon",
"description": "Text/icon to display when discharging",
2020-11-23 10:34:24 -08:00
"default": ""
},
"charged_icon": {
"type": "string",
"title": "Charged Icon",
"description": "Text/icon to display when fully charged",
"default": ""
},
"not_charging_icon": {
"type": "string",
"title": "Not Charging Icon",
"description": "Text/icon to display when on AC power",
2020-11-23 10:34:24 -08:00
"default": ""
}
2020-11-23 10:34:24 -08:00
}
}
}
}
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "command"
}
2020-11-23 10:34:24 -08:00
}
},
"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": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "dotnet"
}
2020-11-23 10:34:24 -08:00
}
},
"then": {
"title": "Dotnet Segment",
"description": "https://ohmyposh.dev/docs/dotnet",
"properties": {
"properties": {
"properties": {
"home_enabled": {
"$ref": "#/definitions/home_enabled"
},
"fetch_version": {
"$ref": "#/definitions/fetch_version"
},
"display_mode": {
"$ref": "#/definitions/display_mode"
},
"missing_command_text": {
"$ref": "#/definitions/missing_command_text"
},
"version_url_template": {
"$ref": "#/definitions/version_url_template"
2020-11-23 10:34:24 -08:00
}
}
}
}
}
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "exit"
}
2020-11-23 10:34:24 -08:00
}
},
"then": {
"title": "Exit Segment",
"description": "https://ohmyposh.dev/docs/exit",
"properties": {
"properties": {
"properties": {
"always_enabled": {
"type": "boolean",
"title": "Always Enabled",
"description": "Always show the status",
"default": false
}
}
}
}
}
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "git"
}
2020-11-23 10:34:24 -08:00
}
},
"then": {
"title": "Git Segment",
"description": "https://ohmyposh.dev/docs/git",
"properties": {
"properties": {
"properties": {
2021-11-08 22:02:27 -08:00
"fetch_status": {
"type": "boolean",
"title": "Display Status",
"description": "Display the local changes or not",
"default": true
},
"fetch_stash_count": {
"type": "boolean",
"title": "Display Stash Count",
"description": "Display the stash count or not",
"default": false
},
"fetch_worktree_count": {
"type": "boolean",
"title": "Display Worktree Count",
"description": "Display the worktree count or not",
"default": false
},
"fetch_upstream_icon": {
"type": "boolean",
"title": "Display Upstream Icon",
"description": "Display upstream icon or not",
"default": false
},
2020-11-23 10:34:24 -08:00
"branch_icon": {
"type": "string",
"title": "Branch Icon",
"description": "The icon to use in front of the git branch name",
"default": "\uE0A0 "
},
"branch_identical_icon": {
"type": "string",
"title": "Branch Identical Icon",
"description": "The icon to display when remote and local are identical",
"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",
"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",
"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"
},
"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"
},
2021-07-29 12:51:09 -07:00
"revert_icon": {
"type": "string",
"title": "Revert Icon",
"description": "Icon/text to display before the context when doing a revert",
"default": "\uF0E2"
},
2020-11-23 10:34:24 -08:00
"merge_icon": {
"type": "string",
"title": "Merge Icon",
"description": "Icon/text to display before the merge context",
"default": "\uE727"
},
"no_commits_icon": {
"type": "string",
"title": "No Commits Icon",
"description": "Icon/text to display when there are no commits in the repo",
"default": "\uF594"
},
2020-11-23 10:34:24 -08:00
"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"
},
"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"
},
2021-08-02 22:58:59 -07:00
"branch_max_length": {
"type": "integer",
"title": "Branch max length",
"description": "the max length for the displayed branch name where 0 implies full length",
"default": 0
},
"untracked_modes": {
"type": "object",
"title": "Untracked files mode",
"description": "Set the untracked files mode for a repository",
"default": {}
2021-08-02 22:58:59 -07:00
}
2020-11-23 10:34:24 -08:00
}
}
}
}
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "go"
}
2020-11-23 10:34:24 -08:00
}
},
"then": {
"title": "Golang Segment",
"description": "https://ohmyposh.dev/docs/golang",
"properties": {
"properties": {
"properties": {
"home_enabled": {
"$ref": "#/definitions/home_enabled"
},
"fetch_version": {
"$ref": "#/definitions/fetch_version"
},
"display_mode": {
2021-05-14 12:26:26 -07:00
"$ref": "#/definitions/display_mode"
},
"missing_command_text": {
"$ref": "#/definitions/missing_command_text"
},
"version_url_template": {
"$ref": "#/definitions/version_url_template"
},
"parse_mod_file": {
"type": "boolean",
"title": "Parse go.mod file",
"description": "Parse go.mod file instead of calling out to go to improve performance.",
"default": false
2021-05-14 12:26:26 -07:00
}
}
}
}
}
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "dart"
}
2021-05-14 12:26:26 -07:00
}
},
"then": {
"title": "Dart Segment",
"description": "https://ohmyposh.dev/docs/dart",
"properties": {
"properties": {
"properties": {
"home_enabled": {
"$ref": "#/definitions/home_enabled"
},
"fetch_version": {
"$ref": "#/definitions/fetch_version"
2021-05-14 12:26:26 -07:00
},
"display_mode": {
"$ref": "#/definitions/display_mode"
},
"missing_command_text": {
"$ref": "#/definitions/missing_command_text"
},
"version_url_template": {
"$ref": "#/definitions/version_url_template"
2020-11-23 10:34:24 -08:00
}
}
}
2021-05-14 04:39:49 -07:00
}
}
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "crystal"
}
2021-05-14 04:39:49 -07:00
}
},
"then": {
"title": "Crystal Segment",
"description": "https://ohmyposh.dev/docs/crystal",
"properties": {
"properties": {
"properties": {
"home_enabled": {
"$ref": "#/definitions/home_enabled"
},
"fetch_version": {
"$ref": "#/definitions/fetch_version"
2021-05-14 04:39:49 -07:00
},
"display_mode": {
"$ref": "#/definitions/display_mode"
},
"missing_command_text": {
"$ref": "#/definitions/missing_command_text"
},
"version_url_template": {
"$ref": "#/definitions/version_url_template"
2021-05-14 04:39:49 -07:00
}
}
}
2020-11-23 10:34:24 -08:00
}
}
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "julia"
}
2020-11-23 10:34:24 -08:00
}
},
"then": {
"title": "Julia Segment",
"description": "https://ohmyposh.dev/docs/julia",
"properties": {
"properties": {
"properties": {
"home_enabled": {
"$ref": "#/definitions/home_enabled"
},
"fetch_version": {
"$ref": "#/definitions/fetch_version"
},
"display_mode": {
"$ref": "#/definitions/display_mode"
},
"missing_command_text": {
2021-03-17 00:16:19 -07:00
"$ref": "#/definitions/missing_command_text"
},
"version_url_template": {
"$ref": "#/definitions/version_url_template"
2021-03-17 00:16:19 -07:00
}
}
}
}
}
},
2021-10-27 01:52:56 -07:00
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "php"
}
2021-10-27 01:52:56 -07:00
}
},
"then": {
"title": "PHP Segment",
"description": "https://ohmyposh.dev/docs/php",
"properties": {
"properties": {
"properties": {
"home_enabled": {
"$ref": "#/definitions/home_enabled"
},
"fetch_version": {
"$ref": "#/definitions/fetch_version"
2021-10-27 01:52:56 -07:00
},
"display_mode": {
"$ref": "#/definitions/display_mode"
},
"missing_command_text": {
"$ref": "#/definitions/missing_command_text"
},
"version_url_template": {
"$ref": "#/definitions/version_url_template"
2021-10-27 01:52:56 -07:00
}
}
}
}
}
},
2021-03-17 00:16:19 -07:00
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "java"
}
2021-03-17 00:16:19 -07:00
}
},
"then": {
"title": "Java Segment",
2021-03-17 00:16:19 -07:00
"description": "https://ohmyposh.dev/docs/java",
"properties": {
"properties": {
"properties": {
"home_enabled": {
"$ref": "#/definitions/home_enabled"
},
"fetch_version": {
"$ref": "#/definitions/fetch_version"
2021-03-17 00:16:19 -07:00
},
"display_mode": {
"$ref": "#/definitions/display_mode"
},
"missing_command_text": {
"$ref": "#/definitions/missing_command_text"
2020-11-23 10:34:24 -08:00
}
}
}
}
}
},
2020-10-25 08:32:14 -07:00
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "ruby"
}
2020-10-25 08:32:14 -07:00
}
},
"then": {
"title": "Ruby Segment",
"description": "https://ohmyposh.dev/docs/ruby",
"properties": {
"properties": {
"properties": {
"home_enabled": {
"$ref": "#/definitions/home_enabled"
},
"fetch_version": {
"$ref": "#/definitions/fetch_version"
2020-10-25 08:32:14 -07:00
},
"display_mode": {
"$ref": "#/definitions/display_mode"
},
"missing_command_text": {
"$ref": "#/definitions/missing_command_text"
}
}
}
}
}
},
2021-07-04 13:53:10 -07:00
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "rust"
}
2021-07-04 13:53:10 -07:00
}
},
"then": {
"title": "Rust Segment",
"description": "https://ohmyposh.dev/docs/rust",
"properties": {
"properties": {
"properties": {
"home_enabled": {
"$ref": "#/definitions/home_enabled"
},
"fetch_version": {
"$ref": "#/definitions/fetch_version"
2021-07-04 13:53:10 -07: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": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "kubectl"
}
2020-11-23 10:34:24 -08:00
}
},
"then": {
"title": "Kubectl Segment",
2021-02-12 03:49:37 -08:00
"description": "https://ohmyposh.dev/docs/kubectl",
"properties": {
"properties": {
"properties": {
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
},
"parse_kubeconfig": {
"type": "boolean",
"title": "Parse kubeconfig",
"description": "Parse kubeconfig files instead of calling out to kubectl to improve performance.",
"default": false
2021-02-12 03:49:37 -08:00
}
}
}
}
}
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "aws"
}
2021-02-12 03:49:37 -08:00
}
},
"then": {
"title": "AWS Segment",
"description": "https://ohmyposh.dev/docs/aws",
"properties": {
"properties": {
"properties": {
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": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "node"
}
2020-11-23 10:34:24 -08:00
}
},
"then": {
"title": "Node Segment",
"description": "https://ohmyposh.dev/docs/node",
"properties": {
"properties": {
"properties": {
"home_enabled": {
"$ref": "#/definitions/home_enabled"
},
"fetch_version": {
"$ref": "#/definitions/fetch_version"
},
"display_mode": {
"$ref": "#/definitions/display_mode"
},
"missing_command_text": {
"$ref": "#/definitions/missing_command_text"
},
"version_url_template": {
"$ref": "#/definitions/version_url_template"
},
"fetch_package_manager": {
"type": "boolean",
"title": "Fetch Display Package Manager",
"description": "Assigns the Yarn or NPM icon to .PackageManagerIcon",
"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"
}
}
}
}
}
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "azfunc"
}
}
},
"then": {
"title": "Azure Function Segment",
"description": "https://ohmyposh.dev/docs/azfunc",
"properties": {
"properties": {
"properties": {
"home_enabled": {
"$ref": "#/definitions/home_enabled"
},
"fetch_version": {
"$ref": "#/definitions/fetch_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": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "os"
}
2020-11-23 10:34:24 -08:00
}
},
"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"
},
"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": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "path"
}
2020-11-23 10:34:24 -08:00
}
},
"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 icon to use as a folder indication",
2020-11-23 10:34:24 -08:00
"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",
"agnoster_short",
"agnoster_left",
2020-11-23 10:34:24 -08:00
"short",
"full",
"folder",
"mixed",
"letter",
"unique"
2020-11-23 10:34:24 -08:00
],
"default": "folder"
},
"mapped_locations": {
"type": "object",
2020-11-23 10:34:24 -08:00
"title": "Mapped Locations",
"description": "Custom glyph/text for specific paths",
"default": {}
},
"max_depth": {
"type": "integer",
"title": "Maximum Depth",
"description": "Maximum path depth to display without shortening",
"default": 1
2021-12-17 13:48:41 -08: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
},
2022-03-01 01:01:58 -08:00
"mixed_threshold": {
"type": "integer",
"title": "Mixed threshold",
"description": "The maximum length of a path segment that will be displayed when using mixed style.",
"default": 4
2022-02-28 21:39:52 -08:00
},
"hide_root_location": {
"type": "boolean",
"title": "Hide the root location",
"description": "Hides the root location, when using agnoster_short style, if it doesn't fit in the last max_depth folders.",
"default": false
2022-01-22 10:46:56 -08:00
}
2020-11-23 10:34:24 -08:00
}
}
}
}
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "python"
}
2020-11-23 10:34:24 -08:00
}
},
"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": {
"home_enabled": {
"$ref": "#/definitions/home_enabled"
},
2021-12-04 02:56:55 -08:00
"fetch_virtual_env": {
2020-11-23 10:34:24 -08:00
"type": "boolean",
2021-12-04 02:56:55 -08:00
"title": "Fetch Virtual Env",
"description": "Fetch the name of the virtualenv or not",
2020-11-23 10:34:24 -08:00
"default": true
},
"display_default": {
"type": "boolean",
"title": "Display Default",
"description": "Show the name of the virtualenv when it's default",
"default": true
},
"fetch_version": {
"$ref": "#/definitions/fetch_version"
},
"display_mode": {
"$ref": "#/definitions/display_mode"
},
"missing_command_text": {
"$ref": "#/definitions/missing_command_text"
},
"version_url_template": {
"$ref": "#/definitions/version_url_template"
2020-11-23 10:34:24 -08:00
}
}
}
}
}
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "root"
}
2020-11-23 10:34:24 -08:00
}
},
"then": {
"title": "Root Segment",
2022-01-22 10:46:56 -08:00
"description": "https://ohmyposh.dev/docs/root"
2020-11-23 10:34:24 -08:00
}
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "session"
}
2020-11-23 10:34:24 -08:00
}
},
"then": {
"title": "Session Segment",
"description": "https://ohmyposh.dev/docs/session",
"properties": {
"properties": {
"properties": {
"ssh_icon": {
"type": "string",
"title": "SSH Icon",
"description": "Text/icon to display first when in an active SSH session",
"default": "\uF817"
}
}
}
}
}
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "shell"
}
2020-11-23 10:34:24 -08:00
}
},
"then": {
"title": "Shell Segment",
"description": "https://ohmyposh.dev/docs/shell",
"properties": {
"properties": {
"properties": {
"custom_text": {
"type": "object",
"title": "Custom Text",
"description": "Custom glyph/text for specific shells",
"default": {}
}
}
}
}
2020-11-23 10:34:24 -08:00
}
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "spotify"
}
2020-11-23 10:34:24 -08:00
}
},
"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": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "terraform"
}
2020-11-23 10:34:24 -08:00
}
},
"then": {
"title": "Terraform Segment",
"description": "https://ohmyposh.dev/docs/terraform"
}
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "text"
}
2020-11-23 10:34:24 -08:00
}
},
"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": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "time"
}
2020-11-23 10:34:24 -08:00
}
},
"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"
}
}
}
}
}
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"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",
"default": "http://127.0.0.1:9863"
},
"http_timeout": {
"$ref": "#/definitions/http_timeout"
}
}
}
}
}
2020-12-06 13:03:40 -08:00
},
2021-08-15 12:11:02 -07:00
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "owm"
}
2021-08-15 12:11:02 -07:00
}
},
"then": {
"title": "Open Weather Map Segment",
"description": "Displays the current weather from the Open Weather Map system",
"properties": {
"properties": {
"properties": {
"apikey": {
"type": "string",
"title": "apikey",
"description": "The apikey used for the api call (Required)",
"default": "."
},
"location": {
"type": "string",
"title": "location",
"description": "Location to use for the api call. Formatted as <City>,<STATE>,<COUNTRY_CODE>. City name, state code and country code divided by comma. Please, refer to ISO 3166 for the state codes or country codes.",
"default": "De Bilt,NL"
},
"units": {
"type": "string",
"title": "units",
"description": "Units of measurement. Available values are standard (kelvin), metric (celsius), and imperial (fahrenheit). Default is standard",
"default": "standard",
2022-05-14 12:18:03 -07:00
"enum": [
"standard",
"metric",
"imperial"
]
},
"http_timeout": {
"$ref": "#/definitions/http_timeout"
},
"cache_timeout": {
"type": "integer",
"title": "cache timeout",
"description": "The number of minutes the response is cached. A value of 0 disables the cache.",
"default": 10
2021-08-15 12:11:02 -07:00
}
}
}
}
}
},
2020-12-06 13:03:40 -08:00
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "executiontime"
}
2020-12-06 13:03:40 -08:00
}
},
"then": {
"title": "Displays the execution time of the previously executed command",
"description": "https://ohmyposh.dev/docs/executiontime",
"properties": {
"properties": {
"properties": {
"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": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "poshgit"
}
2021-03-27 09:04:09 -07:00
}
},
"then": {
"title": "Posh-Git Segment",
"description": "https://ohmyposh.dev/docs/poshgit"
}
2021-09-03 11:54:19 -07:00
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "sysinfo"
}
2021-09-03 11:54:19 -07:00
}
},
"then": {
"title": "Get sysinfo",
"description": "https://ohmyposh.dev/docs/sysinfo",
2021-09-03 11:54:19 -07:00
"properties": {
"properties": {
"properties": {
"precision": {
"type": "integer",
"title": "Precision",
"description": "number of decimal places to show",
"default": 0
}
}
}
}
}
2021-10-13 00:05:29 -07:00
},
2021-12-29 23:57:27 -08:00
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "strava"
}
2021-12-29 23:57:27 -08:00
}
},
"then": {
"title": "Display training data from Strava",
"description": "https://ohmyposh.dev/docs/strava",
"properties": {
"properties": {
"properties": {
"url": {
"type": "string",
"title": "URL of API with Strava data",
"description": "Url of your api provinding a Strava activity",
"default": ""
},
"ride_icon": {
"type": "string",
"title": "Alternative icon",
"description": "Alternative icon for this activity type",
"default": "\uf5a2"
},
"run_icon": {
"type": "string",
"title": "Alternative icon",
"description": "Alternative icon for this activity type",
"default": "\ufc0c"
},
"skiing_icon": {
"type": "string",
"title": "Alternative icon",
"description": "Alternative icon for this activity type",
"default": "\ue213"
},
"workout_icon": {
"type": "string",
"title": "Alternative icon",
"description": "Alternative icon for this activity type",
"default": "\ue213"
},
"unknown_activity_icon": {
"type": "string",
"title": "Fallback icon",
"description": "Fallback icon for other activity types",
"default": "\ue213"
},
"http_timeout": {
"$ref": "#/definitions/http_timeout"
},
"cache_timeout": {
"type": "integer",
"title": "cache timeout",
"description": "The number of minutes the response is cached. A value of 0 disables the cache.",
"default": 10
}
}
}
}
}
},
2021-10-13 00:05:29 -07:00
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "angular"
}
2021-10-13 00:05:29 -07:00
}
},
"then": {
"title": "Angular CLI Segment",
"description": "https://ohmyposh.dev/docs/angular",
2021-10-13 00:05:29 -07:00
"properties": {
"properties": {
"properties": {
"home_enabled": {
"$ref": "#/definitions/home_enabled"
},
"fetch_version": {
"$ref": "#/definitions/fetch_version"
2021-10-13 00:05:29 -07:00
},
"display_mode": {
"$ref": "#/definitions/display_mode"
},
"version_url_template": {
"$ref": "#/definitions/version_url_template"
2021-10-13 00:05:29 -07:00
}
}
}
}
}
2021-11-23 09:31:02 -08:00
},
2021-12-11 08:31:58 -08:00
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "wakatime"
}
2021-12-11 08:31:58 -08:00
}
},
"then": {
"title": "Wakatime",
"description": "Displays the tracked time on wakatime.com",
"properties": {
"properties": {
"properties": {
"apikey": {
"type": "string",
"title": "apikey",
"description": "The apikey used for the api call (Required)",
"default": "."
},
"http_timeout": {
"$ref": "#/definitions/http_timeout"
},
"cache_timeout": {
"type": "integer",
"title": "cache timeout",
"description": "The number of minutes the response is cached. A value of 0 disables the cache.",
"default": 10
}
}
}
}
}
},
2021-11-23 09:31:02 -08:00
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "wifi"
}
2021-11-23 09:31:02 -08:00
}
},
"then": {
"title": "WiFi Segment",
2022-01-22 10:46:56 -08:00
"description": "https://ohmyposh.dev/docs/wifi"
2021-11-23 09:31:02 -08:00
}
2021-11-24 04:47:30 -08:00
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "winreg"
}
2021-11-24 04:47:30 -08:00
}
},
"then": {
"title": "Windows Registry Query",
"description": "https://ohmyposh.dev/docs/winreg",
"properties": {
"properties": {
"properties": {
"path": {
"type": "string",
"title": "Registry Path",
"description": "The path to the registry key (case insensitive, must use backslashes). Ending with \\ will retrieve \"(Default)\" key in that path.",
2021-11-24 04:47:30 -08:00
"default": ""
2021-11-15 13:21:41 -08:00
},
2021-11-28 15:34:37 -08:00
"fallback": {
2022-03-01 01:01:58 -08:00
"type": "string",
"title": "Fallback value",
"description": "Value to display if registry value cannot be retrieved",
"default": ""
2021-11-24 04:47:30 -08:00
}
}
}
}
}
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "plastic"
}
}
},
"then": {
"title": "Plastic SCM Segment",
"description": "https://ohmyposh.dev/docs/plastic",
"properties": {
"properties": {
"properties": {
"fetch_status": {
"type": "boolean",
"title": "Display Status",
"description": "Display the local changes or not",
"default": false
},
"branch_icon": {
"type": "string",
"title": "Branch Icon",
"description": "The icon to use in front of the selector branch name",
"default": "\uE0A0 "
},
"commit_icon": {
"type": "string",
"title": "Commit Icon",
"description": "Icon/text to display before the selector changeset",
"default": "\uF417"
},
"tag_icon": {
"type": "string",
"title": "Tag Icon",
"description": "Icon/text to display before the seletor label",
"default": "\uF412"
},
"branch_max_length": {
"type": "integer",
"title": "Branch max length",
"description": "the max length for the displayed branch name where 0 implies full length",
"default": 0
},
"full_branch_path": {
"type": "boolean",
"title": "Full branch path",
"description": "display the full branch path instead of only the branch name",
"default": false
}
}
}
}
}
2021-12-14 23:49:32 -08:00
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "brewfather"
}
2021-12-14 23:49:32 -08:00
}
},
"then": {
"title": "Brewfather Batch Status",
"description": "https://ohmyposh.dev/docs/brewfather",
"properties": {
"properties": {
"properties": {
"user_id": {
"type": "string",
"title": "Brewfather UserID (required)",
"description": "Provided by Brewfather's Generate API Key settings option",
"default": ""
},
"api_key": {
2022-03-01 01:01:58 -08:00
"type": "string",
"title": "Brewfather API Key (required)",
"description": "Provided by Brewfather's Generate API Key settings option",
"default": ""
2021-12-14 23:49:32 -08:00
},
"batch_id": {
2022-03-01 01:01:58 -08:00
"type": "string",
"title": "ID of the batch in Brewfather (required)",
"description": "At the end of the URL when viewing the batch on the Brewfather site",
"default": ""
2021-12-14 23:49:32 -08:00
},
"day_icon": {
2022-03-01 01:01:58 -08:00
"type": "string",
"title": "Icon to use to indicate days",
"description": "Appended to a number to indicate days, e.g. 25d",
"default": "d"
},
"http_timeout": {
"$ref": "#/definitions/http_timeout"
},
"cache_timeout": {
"type": "integer",
"title": "cache timeout in minutes",
"description": "The number of minutes the response is cached. A value of 0 disables the cache.",
"default": 5
},
"doubleup_icon": {
2022-03-01 01:01:58 -08:00
"type": "string",
"title": "Temperature trend icon, very high positive change",
"description": "Delta between this and prior temperature reading is very high (> 4C by default), available intemplate as .TemperatureTrend",
"default": "↑↑"
},
"singleup_icon": {
2022-03-01 01:01:58 -08:00
"type": "string",
"title": "Temperature trend icon, high positive change",
"description": "Delta between this and prior temperature reading is high (2C < delta < 4C by default), available intemplate as .TemperatureTrend",
"default": "↑"
},
"fortyfiveup_icon": {
2022-03-01 01:01:58 -08:00
"type": "string",
"title": "Temperature trend icon, positive change",
"description": "Delta between this and prior temperature reading is positive (0.5C < delta < 2C by default), available intemplate as .TemperatureTrend",
"default": "↗"
},
"flat_icon": {
2022-03-01 01:01:58 -08:00
"type": "string",
"title": "Temperature trend icon, flat/small change",
"description": "Delta between this and prior temperature and this temperature reading (< +-0.5C change), available intemplate as .TemperatureTrend",
"default": "→"
},
"fortyfivedown_icon": {
2022-03-01 01:01:58 -08:00
"type": "string",
"title": "Temperature trend icon, v. negative change",
"description": "Delta between this and prior temperature reading is negative (-0.5C > delta > -2C by default), available intemplate as .TemperatureTrend",
"default": "↘"
},
"singledown_icon": {
2022-03-01 01:01:58 -08:00
"type": "string",
"title": "Temperature trend icon, high negative change",
"description": "Delta between this and prior temperature reading is large negative (-2C > delta > -4C by default), available intemplate as .TemperatureTrend",
"default": "↓"
},
"doubledown_icon": {
2022-03-01 01:01:58 -08:00
"type": "string",
"title": "Temperature trend icon, very high negative change",
"description": "Delta between this and prior temperature reading is very large negative (> -4C by default), available intemplate as .TemperatureTrend",
"default": "↓↓"
},
"planning_status_icon": {
2022-03-01 01:01:58 -08:00
"type": "string",
"title": "Icon for batch in planning",
"description": "Available in template as .StatusIcon",
"default": "\uF8EA"
},
"brewing_status_icon": {
2022-03-01 01:01:58 -08:00
"type": "string",
"title": "Icon for batch being brewed",
"description": "Available in template as .StatusIcon",
"default": "\uF7DE"
},
"fermenting_status_icon": {
2022-03-01 01:01:58 -08:00
"type": "string",
"title": "Icon for batch fermenting",
"description": "Available in template as .StatusIcon",
"default": "\uF499"
},
"conditioning_status_icon": {
2022-03-01 01:01:58 -08:00
"type": "string",
"title": "Icon for batch conditioning",
"description": "Available in template as .StatusIcon",
"default": "\uE372"
},
"completed_status_icon": {
2022-03-01 01:01:58 -08:00
"type": "string",
"title": "Icon for completed batch",
"description": "Available in template as .StatusIcon",
"default": "\uF7A5"
},
"archived_status_icon": {
2022-03-01 01:01:58 -08:00
"type": "string",
"title": "Icon for archived batch",
"description": "Available in template as .StatusIcon",
"default": "\uF187"
2021-12-14 23:49:32 -08:00
}
}
}
}
}
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "ipify"
}
}
},
"then": {
"title": "Display your external IP Address",
"description": "https://ohmyposh.dev/docs/ipify",
"properties": {
"properties": {
"properties": {
"url": {
"type": "string",
"title": "URL",
"description": "The Ipify API URL",
"default": "https://api.ipify.org"
},
"http_timeout": {
"$ref": "#/definitions/http_timeout"
},
"cache_timeout": {
"type": "integer",
"title": "cache timeout",
"description": "The number of minutes the response is cached. A value of 0 disables the cache.",
"default": 10
}
}
}
}
}
2022-02-08 00:11:00 -08:00
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "haskell"
}
2022-02-08 00:11:00 -08:00
}
},
"then": {
"title": "Haskell Segment",
"description": "https://ohmyposh.dev/docs/haskell",
"properties": {
"properties": {
"properties": {
"home_enabled": {
"$ref": "#/definitions/home_enabled"
},
2022-02-08 00:11:00 -08:00
"fetch_version": {
"$ref": "#/definitions/fetch_version"
},
"display_mode": {
"$ref": "#/definitions/display_mode"
},
"missing_command_text": {
"$ref": "#/definitions/missing_command_text"
},
"version_url_template": {
"$ref": "#/definitions/version_url_template"
},
2022-02-08 00:11:00 -08:00
"stack_ghc_mode": {
"type": "string",
"title": "Use Stack GHC",
"description": "Get the GHC version used by Stack. Will decrease performance. Boolean indicating whether stack ghc was used available in template as .StackGhc",
2022-05-14 12:18:03 -07:00
"enum": [
"always",
"package",
"never"
],
2022-02-08 00:11:00 -08:00
"default": "never"
}
}
}
}
}
2022-02-13 23:41:33 -08:00
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "ui5tooling"
}
2022-02-13 23:41:33 -08:00
}
},
"then": {
"title": "UI5 tooling CLI segment",
"description": "https://ohmyposh.dev/docs/ui5tooling",
"properties": {
"properties": {
"properties": {
"home_enabled": {
"$ref": "#/definitions/home_enabled"
},
2022-02-13 23:41:33 -08:00
"fetch_version": {
"$ref": "#/definitions/fetch_version"
2022-02-16 08:23:40 -08:00
},
"display_mode": {
"$ref": "#/definitions/display_mode"
},
"missing_command_text": {
"$ref": "#/definitions/missing_command_text"
},
"version_url_template": {
"$ref": "#/definitions/version_url_template"
2022-02-16 08:23:40 -08:00
}
}
}
}
}
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "cf"
}
2022-02-16 08:23:40 -08:00
}
},
"then": {
"title": "Clound Foundry CLI segment",
"description": "https://ohmyposh.dev/docs/cf",
"properties": {
"properties": {
"properties": {
"home_enabled": {
"$ref": "#/definitions/home_enabled"
},
2022-02-16 08:23:40 -08:00
"fetch_version": {
"$ref": "#/definitions/fetch_version"
2022-02-13 23:41:33 -08:00
},
"display_mode": {
"$ref": "#/definitions/display_mode"
},
"missing_command_text": {
"$ref": "#/definitions/missing_command_text"
},
"version_url_template": {
"$ref": "#/definitions/version_url_template"
2022-02-13 23:41:33 -08:00
}
}
}
}
}
2022-02-19 05:45:21 -08:00
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "cftarget"
}
2022-02-19 05:45:21 -08:00
}
},
"then": {
"title": "Clound Foundry Target segment",
"description": "https://ohmyposh.dev/docs/cftarget"
}
2022-03-01 01:01:58 -08:00
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "kotlin"
}
2022-03-01 01:01:58 -08:00
}
},
"then": {
"title": "Kotlin Segment",
"description": "https://ohmyposh.dev/docs/kotlin",
"properties": {
"properties": {
"properties": {
"home_enabled": {
"$ref": "#/definitions/home_enabled"
},
2022-03-01 01:01:58 -08:00
"fetch_version": {
"$ref": "#/definitions/fetch_version"
},
"display_mode": {
"$ref": "#/definitions/display_mode"
},
"missing_command_text": {
"$ref": "#/definitions/missing_command_text"
},
"version_url_template": {
"$ref": "#/definitions/version_url_template"
2022-03-02 17:38:09 -08:00
}
}
}
}
}
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "swift"
}
2022-03-02 17:38:09 -08:00
}
},
"then": {
"title": "Swift Segment",
"description": "https://ohmyposh.dev/docs/swift",
"properties": {
"properties": {
"properties": {
"home_enabled": {
"$ref": "#/definitions/home_enabled"
},
2022-03-02 17:38:09 -08:00
"fetch_version": {
"$ref": "#/definitions/fetch_version"
},
"display_mode": {
"$ref": "#/definitions/display_mode"
},
"missing_command_text": {
"$ref": "#/definitions/missing_command_text"
},
"version_url_template": {
"$ref": "#/definitions/version_url_template"
2022-03-06 13:52:12 -08:00
}
}
}
}
}
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "cds"
}
2022-03-06 13:52:12 -08:00
}
},
"then": {
"title": "CDS (SAP CAP) segment",
"description": "https://ohmyposh.dev/docs/cds",
"properties": {
"properties": {
"properties": {
"home_enabled": {
"$ref": "#/definitions/home_enabled"
},
2022-03-06 13:52:12 -08:00
"fetch_version": {
"$ref": "#/definitions/fetch_version"
},
"display_mode": {
"$ref": "#/definitions/display_mode"
},
"missing_command_text": {
"$ref": "#/definitions/missing_command_text"
2022-03-01 01:01:58 -08:00
}
}
}
}
}
2022-03-19 01:06:06 -07:00
},
{
"if": {
"properties": {
2022-05-14 12:18:03 -07:00
"type": {
"const": "r"
}
2022-03-19 01:06:06 -07:00
}
},
"then": {
"title": "R Segment",
"description": "https://ohmyposh.dev/docs/r",
"properties": {
"properties": {
"properties": {
"home_enabled": {
"$ref": "#/definitions/home_enabled"
},
2022-03-19 01:06:06 -07:00
"fetch_version": {
"$ref": "#/definitions/fetch_version"
},
"display_mode": {
"$ref": "#/definitions/display_mode"
},
"missing_command_text": {
"$ref": "#/definitions/missing_command_text"
},
"version_url_template": {
"$ref": "#/definitions/version_url_template"
2022-03-19 01:06:06 -07:00
}
}
}
}
}
2020-11-23 10:34:24 -08:00
}
]
}
},
2022-05-14 12:18:03 -07:00
"required": [
"blocks"
],
2020-11-23 10:34:24 -08:00
"properties": {
"final_space": {
"type": "boolean",
2020-12-27 02:56:33 -08:00
"title": "Final Space",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/overview#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",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/overview#general-settings",
2021-02-15 13:19:19 -08:00
"default": false
},
2020-12-27 02:56:33 -08:00
"console_title_template": {
"type": "string",
"title": "Console Title Template",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/title#console-title-template",
2020-12-27 02:56:33 -08:00
"default": "{{ .Shell }} in {{ .Folder }}"
},
2022-05-14 12:18:03 -07:00
"terminal_background": {
"$ref": "#/definitions/color"
},
2020-11-23 10:34:24 -08:00
"blocks": {
"type": "array",
"title": "Block array",
"default": [],
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/overview#blocks",
2022-05-14 12:18:03 -07:00
"items": {
"$ref": "#/definitions/block"
}
2021-06-13 10:41:56 -07:00
},
"tooltips": {
"type": "array",
"title": "Tooltip list, prompt elements to display based on context",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/tooltips",
2021-06-13 10:41:56 -07:00
"default": [],
"items": {
2022-05-14 12:18:03 -07:00
"allOf": [
{
"$ref": "#/definitions/segment"
}
],
2021-06-13 10:41:56 -07:00
"properties": {
"tips": {
"type": "array",
"title": "The commands for which you want the segment to show",
"items": {
"type": "string"
}
}
},
2022-05-14 12:18:03 -07:00
"required": [
"tips"
]
2021-06-13 10:41:56 -07:00
}
2021-06-15 12:23:08 -07:00
},
"transient_prompt": {
2022-02-19 07:49:26 -08:00
"$ref": "#/definitions/extra_prompt",
"title": "Transient Prompt Setting",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/transient"
2022-02-19 07:49:26 -08:00
},
"valid_line": {
"$ref": "#/definitions/extra_prompt",
"title": "Valid Prompt Setting",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/prompt-override"
2022-02-19 07:49:26 -08:00
},
"error_line": {
"$ref": "#/definitions/extra_prompt",
"title": "Error Prompt Setting",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/prompt-override"
},
2022-02-20 04:56:28 -08:00
"secondary_prompt": {
"$ref": "#/definitions/extra_prompt",
"title": "Secondary Prompt Setting",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/secondary-prompt"
2022-02-20 04:56:28 -08:00
},
"palette": {
"type": "object",
"title": "Palette",
2022-04-23 08:34:00 -07:00
"description": "https://ohmyposh.dev/docs/configuration/colors#palette",
"default": {},
"patternProperties": {
2022-05-14 12:18:03 -07:00
".*": {
"$ref": "#/definitions/color"
}
}
2020-11-23 10:34:24 -08:00
}
}
}