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
150 lines
3.6 KiB
JavaScript
150 lines
3.6 KiB
JavaScript
module.exports = {
|
|
docs: [
|
|
{
|
|
type: "category",
|
|
label: "💡 Getting Started",
|
|
collapsed: false,
|
|
items: [
|
|
"introduction",
|
|
{
|
|
type: "category",
|
|
label: "🚀 Get started",
|
|
collapsed: false,
|
|
items: [
|
|
{
|
|
type: "category",
|
|
label: "📦 Installation",
|
|
collapsed: false,
|
|
items: [
|
|
"installation/windows",
|
|
"installation/macos",
|
|
"installation/linux",
|
|
],
|
|
},
|
|
"installation/fonts",
|
|
"installation/prompt",
|
|
"installation/customize",
|
|
],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
type: "category",
|
|
label: "⚙️ Configuration",
|
|
items: [
|
|
"configuration/overview",
|
|
"configuration/block",
|
|
"configuration/segment",
|
|
"configuration/sample",
|
|
"configuration/title",
|
|
"configuration/colors",
|
|
"configuration/templates",
|
|
"configuration/secondary-prompt",
|
|
"configuration/debug-prompt",
|
|
"configuration/transient",
|
|
"configuration/line-error",
|
|
"configuration/tooltips",
|
|
],
|
|
},
|
|
{
|
|
type: "category",
|
|
label: "🌟 Segments",
|
|
collapsed: true,
|
|
items: [
|
|
"segments/angular",
|
|
"segments/argocd",
|
|
"segments/aws",
|
|
"segments/az",
|
|
"segments/azfunc",
|
|
"segments/battery",
|
|
"segments/brewfather",
|
|
"segments/buf",
|
|
"segments/cds",
|
|
"segments/cf",
|
|
"segments/cftarget",
|
|
"segments/cmake",
|
|
"segments/command",
|
|
"segments/connection",
|
|
"segments/crystal",
|
|
"segments/dart",
|
|
"segments/deno",
|
|
"segments/docker",
|
|
"segments/dotnet",
|
|
"segments/elixir",
|
|
"segments/executiontime",
|
|
"segments/flutter",
|
|
"segments/fossil",
|
|
"segments/gcp",
|
|
"segments/git",
|
|
"segments/gitversion",
|
|
"segments/golang",
|
|
"segments/haskell",
|
|
"segments/ipify",
|
|
"segments/iterm",
|
|
"segments/java",
|
|
"segments/julia",
|
|
"segments/kotlin",
|
|
"segments/kubectl",
|
|
"segments/lua",
|
|
"segments/mercurial",
|
|
"segments/nbgv",
|
|
"segments/nightscout",
|
|
"segments/node",
|
|
"segments/npm",
|
|
"segments/nx",
|
|
"segments/os",
|
|
"segments/owm",
|
|
"segments/path",
|
|
"segments/perl",
|
|
"segments/php",
|
|
"segments/plastic",
|
|
"segments/project",
|
|
"segments/python",
|
|
"segments/quasar",
|
|
"segments/r",
|
|
"segments/root",
|
|
"segments/ruby",
|
|
"segments/rust",
|
|
"segments/sapling",
|
|
"segments/session",
|
|
"segments/shell",
|
|
"segments/sitecore",
|
|
"segments/spotify",
|
|
"segments/status",
|
|
"segments/strava",
|
|
"segments/svn",
|
|
"segments/swift",
|
|
"segments/sysinfo",
|
|
"segments/terraform",
|
|
"segments/text",
|
|
"segments/time",
|
|
"segments/ui5tooling",
|
|
"segments/unity",
|
|
"segments/upgrade",
|
|
"segments/vala",
|
|
"segments/wakatime",
|
|
"segments/withings",
|
|
"segments/winreg",
|
|
"segments/xmake",
|
|
"segments/ytm",
|
|
],
|
|
},
|
|
{
|
|
type: "category",
|
|
label: "🙋🏾♀️ Contributing",
|
|
collapsed: true,
|
|
items: [
|
|
"contributing/started",
|
|
"contributing/segment",
|
|
"contributing/git",
|
|
"contributing/plastic",
|
|
],
|
|
},
|
|
"themes",
|
|
"share",
|
|
"faq",
|
|
"migrating",
|
|
"contributors",
|
|
],
|
|
};
|