Oh My Posh
Oh My Posh configuration file
| Type | object |
|---|---|
| File match |
*.omp.json
*.omp.toml
*.omp.yaml
*.omp.yml
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/oh-my-posh/latest.json |
| Source | https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json |
Validate with Lintel
npx @lintel/lintel check
Properties
{
"source": "cdn",
"auto": false,
"notice": false
}
4 nested properties
The duration for which the segment will be cached. This is parsed using the time.ParseDuration function from the Go standard library (see https://pkg.go.dev/time#ParseDuration for details).
{}
5 nested properties
[]
[]
{}
5 nested properties
[]
[]
{}
5 nested properties
[]
[]
{}
5 nested properties
[]
[]
{}
5 nested properties
[]
[]
{}
2 nested properties
Definitions
Display the segment in the HOME folder
Fetch the version number
Milliseconds to use for http request timeouts
Access token expiration time in seconds
The initial access token
The initial refresh token
Determines whether the segment is displayed always or only if a file matching the extensions are present in the current folder
The string to display when the command is not available
Override the status format for a specific change. Example: {"Added": "Added: %d"}
Try to use the WSL 2 native command in a shared Windows drive if the Windows executable is not found.
the temaplate to use for the branch name, supports {{ .Branch }} for the branch name
Custom glyph/text for specific branches
The duration for which the segment will be cached. This is parsed using the time.ParseDuration function from the Go standard library (see https://pkg.go.dev/time#ParseDuration for details).
Common options for language segments
Display the segment in the HOME folder
Fetch the version number
The duration for which the segment will be cached. This is parsed using the time.ParseDuration function from the Go standard library (see https://pkg.go.dev/time#ParseDuration for details).
The string to display when the command is not available
Determines whether the segment is displayed always or only if a file matching the extensions are present in the current folder
Template that creates the URL of the version info / release notes
The tooling to use for fetching the version
[]
The extensions to look for when determining if the current directory is a project
[]
The folders to look for when determining if a folder is a workspace
[]
Right aligned filler text, will span the remaining width.
Custom value replacement for template parts
[]
[]
[]
[]
DEPRECATED: Use 'options' instead. This field is maintained for backward compatibility with version 3 configs and will be removed in a future version. See https://ohmyposh.dev/docs/configuration/segment#options
{}
[]
[]
{}
2 nested properties
The duration for which the segment will be cached. This is parsed using the time.ParseDuration function from the Go standard library (see https://pkg.go.dev/time#ParseDuration for details).
Text to display while the segment is loading in streaming mode. See https://ohmyposh.dev/docs/experimental/streaming