mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -08:00
f47da9592f
BREAKING CHANGE: exit segment is now called status segment. The exit keyword is now deprecated and will be removed in a future release. Please use the status keyword instead: ```diff "segments": { { - "type": "exit" + "type": "status" } } ``` Additionally, the status segment configuration has changed to support $PIPESTATUS. You can include a status template to customize the rendering of each individual status code (supported in fish, zsh and bash). ```json "segments": { { "type": "status", "properties": { "status_template": "{{ if gt .Code 0 }}\uf071{{ else }}\uf00c{{ end }}", "status_separator": " " } } } ``` In case no $PIPESTATUS is available, the status segment will fall back to the exit code of the last command using the status template for rendering. The `{{ .Meaning }}` property has been marked as deprecated and can be replaced with `{{ reason .Code }}`, allowing it to be reused in cross segment templates. resolves #4070
175 lines
3.5 KiB
JSON
175 lines
3.5 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Primary",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "debug",
|
|
"program": "${workspaceRoot}/src",
|
|
"args": [
|
|
"prompt",
|
|
"print",
|
|
"primary",
|
|
"--shell=pwsh",
|
|
"--terminal-width=200"
|
|
]
|
|
},
|
|
{
|
|
"name": "Tooltip",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "debug",
|
|
"program": "${workspaceRoot}/src",
|
|
"args": [
|
|
"prompt",
|
|
"print",
|
|
"tooltip",
|
|
"--command=git",
|
|
"--shell=pwsh"
|
|
]
|
|
},
|
|
{
|
|
"name": "Transient",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "debug",
|
|
"program": "${workspaceRoot}/src",
|
|
"args": [
|
|
"prompt",
|
|
"print",
|
|
"transient",
|
|
"--shell=pwsh",
|
|
"--status=1"
|
|
]
|
|
},
|
|
{
|
|
"name": "Launch tests",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "test",
|
|
"program": "${workspaceRoot}/src",
|
|
"args": [
|
|
"--test.v"
|
|
]
|
|
},
|
|
{
|
|
"name": "Debug",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "debug",
|
|
"program": "${workspaceRoot}/src",
|
|
"args": [
|
|
"prompt",
|
|
"debug"
|
|
]
|
|
},
|
|
{
|
|
"name": "Init",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "debug",
|
|
"program": "${workspaceRoot}/src",
|
|
"args": [
|
|
"prompt",
|
|
"init",
|
|
"cmd",
|
|
"--print"
|
|
]
|
|
},
|
|
{
|
|
"name": "Export Image",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "debug",
|
|
"program": "${workspaceRoot}/src",
|
|
"args": [
|
|
"config",
|
|
"export",
|
|
"image"
|
|
]
|
|
},
|
|
{
|
|
"name": "Migrate config",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "debug",
|
|
"program": "${workspaceRoot}/src",
|
|
"args": [
|
|
"config",
|
|
"migrate"
|
|
]
|
|
},
|
|
{
|
|
"name": "Migrate glyphs",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "debug",
|
|
"program": "${workspaceRoot}/src",
|
|
"args": [
|
|
"config",
|
|
"migrate",
|
|
"glyphs"
|
|
]
|
|
},
|
|
{
|
|
"name": "Get value",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "debug",
|
|
"program": "${workspaceRoot}/src",
|
|
"args": [
|
|
"get",
|
|
"accent"
|
|
]
|
|
},
|
|
{
|
|
"name": "Toggle segment",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "debug",
|
|
"program": "${workspaceRoot}/src",
|
|
"args": [
|
|
"toggle",
|
|
"git"
|
|
]
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Theme export",
|
|
"cwd": "${workspaceFolder}/website",
|
|
"program": "${workspaceRoot}/website/export_themes.js",
|
|
"console": "integratedTerminal"
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Bluesky",
|
|
"cwd": "${workspaceFolder}/scripts/bluesky",
|
|
"program": "${workspaceRoot}/scripts/bluesky/main.cjs",
|
|
"console": "integratedTerminal",
|
|
"envFile": "${workspaceFolder}/scripts/bluesky/.env"
|
|
},
|
|
{
|
|
"name": "Docs API",
|
|
"type": "node",
|
|
"request": "attach",
|
|
"port": 9229,
|
|
"preLaunchTask": "func: host start",
|
|
"cwd": "${workspaceFolder}/website",
|
|
"envFile": "${workspaceFolder}/website/.env"
|
|
},
|
|
{
|
|
"name": "Cache",
|
|
"type": "go",
|
|
"request": "launch",
|
|
"mode": "debug",
|
|
"program": "${workspaceRoot}/src",
|
|
"args": [
|
|
"cache"
|
|
]
|
|
}
|
|
]
|
|
}
|