mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 04:54:03 -08:00
docs: tables for data
this look a lot better
This commit is contained in:
parent
8d9fe9d3c8
commit
3057e474d7
|
@ -5,7 +5,7 @@ sidebar_label: Block
|
||||||
---
|
---
|
||||||
|
|
||||||
import Tabs from "@theme/Tabs";
|
import Tabs from "@theme/Tabs";
|
||||||
import TabItem from "@theme/TabItem"
|
import TabItem from "@theme/TabItem";
|
||||||
|
|
||||||
Let's take a closer look at what defines a block.
|
Let's take a closer look at what defines a block.
|
||||||
|
|
||||||
|
@ -41,13 +41,11 @@ Let's take a closer look at what defines a block.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
|
||||||
...
|
---
|
||||||
blocks:
|
blocks:
|
||||||
- type: prompt
|
- type: prompt
|
||||||
alignment: left
|
alignment: left
|
||||||
segments: [
|
segments: [...]
|
||||||
...
|
|
||||||
]
|
|
||||||
```
|
```
|
||||||
|
|
||||||
</TabItem>
|
</TabItem>
|
||||||
|
@ -67,12 +65,16 @@ segments = [
|
||||||
</TabItem>
|
</TabItem>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
|
||||||
- type: `prompt` | `rprompt`
|
## Properties
|
||||||
- newline: `boolean`
|
|
||||||
- alignment: `left` | `right`
|
| Name | Type |
|
||||||
- filler: `string`
|
| ----------- | --------- |
|
||||||
- overflow: `break` | `hide`
|
| `type` | `string` |
|
||||||
- segments: `array` of one or more `segments`
|
| `newline` | `boolean` |
|
||||||
|
| `alignment` | `string` |
|
||||||
|
| `filler` | `string` |
|
||||||
|
| `overflow` | `string` |
|
||||||
|
| `segments` | `array` |
|
||||||
|
|
||||||
### Type
|
### Type
|
||||||
|
|
||||||
|
@ -88,6 +90,9 @@ Start the block on a new line - defaults to `false`.
|
||||||
|
|
||||||
### Alignment
|
### Alignment
|
||||||
|
|
||||||
|
- `left`
|
||||||
|
- `right`
|
||||||
|
|
||||||
Tell the engine if the block should be left or right-aligned.
|
Tell the engine if the block should be left or right-aligned.
|
||||||
|
|
||||||
### Filler
|
### Filler
|
||||||
|
@ -103,11 +108,15 @@ to be repeated to this property. Add this property to the _right_ aligned block.
|
||||||
|
|
||||||
### Overflow
|
### Overflow
|
||||||
|
|
||||||
|
- `break`
|
||||||
|
- `hide`
|
||||||
|
|
||||||
When the right aligned block is so long it will overflow the left aligned block, the engine will either
|
When the right aligned block is so long it will overflow the left aligned block, the engine will either
|
||||||
break the block or hide it based on the setting. By default it is printed as is on the same line.
|
break the block or hide it based on the setting. By default it is printed as is on the same line.
|
||||||
|
|
||||||
### Segments
|
### Segments
|
||||||
|
|
||||||
Array of one or more segments.
|
Array of one or more [segments][segment].
|
||||||
|
|
||||||
[color-overrides]: /docs/configuration/colors#color-overrides
|
[color-overrides]: /docs/configuration/colors#color-overrides
|
||||||
|
[segment]: segment.mdx
|
||||||
|
|
|
@ -29,7 +29,7 @@ Oh My Posh supports multiple different color references, being:
|
||||||
|
|
||||||
## Color templates
|
## Color templates
|
||||||
|
|
||||||
Array of string templates to define the color based on the current context.
|
Array of string [templates][templates] to define the color based on the current context.
|
||||||
Under the hood this uses go's [text/template][go-text-template] feature extended with [sprig][sprig] and
|
Under the hood this uses go's [text/template][go-text-template] feature extended with [sprig][sprig] and
|
||||||
offers a few standard properties to work with. For segments, you can look at the **Template Properties**
|
offers a few standard properties to work with. For segments, you can look at the **Template Properties**
|
||||||
section in the documentation. The general template properties are listed [here][template-properties].
|
section in the documentation. The general template properties are listed [here][template-properties].
|
||||||
|
@ -196,3 +196,6 @@ For example, `p:foreground` and `p:background` will be correctly set to "#CAF0F8
|
||||||
[battery]: /docs/segments/battery
|
[battery]: /docs/segments/battery
|
||||||
[template-properties]: /docs/configuration/templates#global-properties
|
[template-properties]: /docs/configuration/templates#global-properties
|
||||||
[aws]: /docs/segments/aws
|
[aws]: /docs/segments/aws
|
||||||
|
[go-text-template]: https://golang.org/pkg/text/template/
|
||||||
|
[sprig]: https://masterminds.github.io/sprig/
|
||||||
|
[templates]: templates.mdx
|
||||||
|
|
|
@ -32,25 +32,28 @@ You need to extend or create a custom theme with your debug prompt override. For
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
The configuration has the following properties:
|
## Properties
|
||||||
|
|
||||||
- foreground: `string` [color][colors]
|
| Name | Type | Description |
|
||||||
- foreground_templates: foreground [color templates][color-templates]
|
| ---------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- background: `string` [color][colors]
|
| `foreground` | `string` | [color][colors] |
|
||||||
- background_templates: background [color templates][color-templates]
|
| `foreground_templates` | `string` | [color templates][color-templates] |
|
||||||
- template: `string` - a go [text/template][go-text-template] template extended with [sprig][sprig] utilizing the
|
| `background` | `string` | [color][colors] |
|
||||||
properties below - defaults to `[DBG]: `
|
| `background_templates` | `string` | [color templates][color-templates] |
|
||||||
|
| `template` | `string` | a go [text/template][go-text-template] template extended with [sprig][sprig] utilizing the properties below - defaults to `[DBG]: ` |
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
- `.Root`: `boolean` - is the current user root/admin or not
|
| Name | Type | Description |
|
||||||
- `.PWD`: `string` - the current working directory
|
| -------------- | --------- | ------------------------------------------------------------------------- |
|
||||||
- `.Folder`: `string` - the current working folder
|
| `.Root` | `boolean` | is the current user root/admin or not |
|
||||||
- `.Shell`: `string` - the current shell name
|
| `.PWD` | `string` | the current working directory |
|
||||||
- `.UserName`: `string` - the current user name
|
| `.Folder` | `string` | the current working folder |
|
||||||
- `.HostName`: `string` - the host name
|
| `.Shell` | `string` | the current shell name |
|
||||||
- `.Code`: `int` - the last exit code
|
| `.UserName` | `string` | the current user name |
|
||||||
- `.Env.VarName`: `string` - Any environment variable where `VarName` is the environment variable name
|
| `.HostName` | `string` | the host name |
|
||||||
|
| `.Code` | `int` | the last exit code |
|
||||||
|
| `.Env.VarName` | `string` | Any environment variable where `VarName` is the environment variable name |
|
||||||
|
|
||||||
[go-text-template]: https://golang.org/pkg/text/template/
|
[go-text-template]: https://golang.org/pkg/text/template/
|
||||||
[sprig]: https://masterminds.github.io/sprig/
|
[sprig]: https://masterminds.github.io/sprig/
|
||||||
|
|
|
@ -46,11 +46,13 @@ You need to extend or create a custom theme with your prompt overrides. For exam
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
The configuration has the following properties:
|
## Properties
|
||||||
|
|
||||||
- background: `string` [color][colors]
|
| Name | Type | Description |
|
||||||
- foreground: `string` [color][colors]
|
| ------------ | -------- | ---------------------------------------------------------- |
|
||||||
- template: `string` - a fully featured [template][templates] - defaults to ` `
|
| `background` | `string` | [color][colors] |
|
||||||
|
| `foreground` | `string` | [color][colors] |
|
||||||
|
| `template` | `string` | a fully featured [template][templates] - defaults to empty |
|
||||||
|
|
||||||
[colors]: /docs/configuration/colors
|
[colors]: /docs/configuration/colors
|
||||||
[go-text-template]: https://golang.org/pkg/text/template/
|
[go-text-template]: https://golang.org/pkg/text/template/
|
||||||
|
|
|
@ -123,11 +123,12 @@ For example, the following is a valid `--config` flag:
|
||||||
|
|
||||||
## General Settings
|
## General Settings
|
||||||
|
|
||||||
- final_space: `boolean` - when true adds a space at the end of the prompt
|
| Name | Type | Description |
|
||||||
- pwd: `string` - notify terminal of current working directory, values can be `osc99` or `osc7` depending on your terminal
|
| --------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- terminal_background: `string` [color][colors] - terminal background color, set to your terminal's background color when
|
| `final_space` | `boolean` | when true adds a space at the end of the prompt |
|
||||||
you notice black elements in Windows Terminal or the Visual Studio Code integrated terminal
|
| `pwd` | `string` | notify terminal of current working directory, values can be `osc99` or `osc7` depending on your terminal |
|
||||||
- accent_color: `string` [color][colors] - accent color, used as a fallback when the `accent` [color][accent] is not supported
|
| `terminal_background` | `string` | [color][colors] - terminal background color, set to your terminal's background color when you notice black elements in Windows Terminal or the Visual Studio Code integrated terminal |
|
||||||
|
| `accent_color` | `string` | [color][colors] - accent color, used as a fallback when the `accent` [color][accent] is not supported |
|
||||||
|
|
||||||
### JSON Schema Validation
|
### JSON Schema Validation
|
||||||
|
|
||||||
|
|
|
@ -31,19 +31,22 @@ You need to extend or create a custom theme with your secondary prompt override.
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
The configuration has the following properties:
|
## Properties
|
||||||
|
|
||||||
- background: `string` [color][colors]
|
| Name | Type | Description |
|
||||||
- foreground: `string` [color][colors]
|
| ------------ | -------- | ------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
- template: `string` - a go [text/template][go-text-template] template extended with [sprig][sprig] utilizing the
|
| `background` | `string` | [color][colors] |
|
||||||
properties below - defaults to `> `
|
| `foreground` | `string` | [color][colors] |
|
||||||
|
| `template` | `string` | a go [text/template][go-text-template] template extended with [sprig][sprig] utilizing the properties below - defaults to `> ` |
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
- `.Root`: `boolean` - is the current user root/admin or not
|
| Name | Type | Description |
|
||||||
- `.Shell`: `string` - the current shell name
|
| ----------- | --------- | ------------------------------------- |
|
||||||
- `.UserName`: `string` - the current user name
|
| `.Root` | `boolean` | is the current user root/admin or not |
|
||||||
- `.HostName`: `string` - the host name
|
| `.Shell` | `string` | the current shell name |
|
||||||
|
| `.UserName` | `string` | the current user name |
|
||||||
|
| `.HostName` | `string` | the host name |
|
||||||
|
|
||||||
[go-text-template]: https://golang.org/pkg/text/template/
|
[go-text-template]: https://golang.org/pkg/text/template/
|
||||||
[sprig]: https://masterminds.github.io/sprig/
|
[sprig]: https://masterminds.github.io/sprig/
|
||||||
|
|
|
@ -33,25 +33,23 @@ understand how to configure a segment.
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
- type: `string` any of the included [segments][segments]
|
| Name | Type | Description |
|
||||||
- style: `powerline` | `plain` | `diamond` | `accordion`
|
| ---------------------- | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- powerline_symbol: `string`
|
| `type` | `string` | takes the `string` value referencing which segment logic it needs to run (see [segments][segments] for possible values) |
|
||||||
- invert_powerline: `boolean`
|
| `style` | `string` | see [Style][style] below. Possible values:<ul><li>`powerline`</li><li>`plain`</li><li>`diamond`</li><li>`accordion`</li></ul> |
|
||||||
- leading_diamond: `string`
|
| `powerline_symbol` | `string` | character to use when `"style": "powerline"` |
|
||||||
- trailing_diamond: `string`
|
| `invert_powerline` | `boolean` | if `true` swaps the foreground and background colors. Can be useful when the character you want does not exist in the perfectly mirrored variant for example - defaults to `false` |
|
||||||
- foreground: `string` [color][colors]
|
| `leading_diamond` | `string` | character to use at the start of the segment. Will take the background color of the segment as its foreground color |
|
||||||
- foreground_templates: foreground [color templates][color-templates]
|
| `trailing_diamond` | `string` | character to use at the end of the segment. Will take the background color of the segment as its foreground color |
|
||||||
- background: `string` [color][colors]
|
| `foreground` | `string` | [color][colors] |
|
||||||
- background_templates: background [color templates][color-templates]
|
| `foreground_templates` | `[]Template` | [color templates][color-templates] |
|
||||||
- template: `string` a go [text/template][go-text-template] [template][templates] to render the prompt
|
| `background` | `string` | [color][colors] |
|
||||||
- templates: `array` of `template`
|
| `background_templates` | `[]Template` | [color templates][color-templates] |
|
||||||
- templates_logic: `first_match` | `join`
|
| `template` | `string` | a go [text/template][go-text-template] [template][templates] to render the prompt |
|
||||||
- properties: `array` of `Property`: `string`
|
| `templates` | `[]Template` | in some cases having a single [template][templates] string is a bit cumbersome. Templates allows you to span the segment's [template][templates] string multiple lines where every [template][templates] is evaluated and depending on what you aim to achieve, there are two possible outcomes based on `templates_logic` |
|
||||||
- interactive: `boolean`
|
| `templates_logic` | `string` | <ul><li>`first_match`: return the first non-whitespace string and skip everything else</li><li>`join`:evaluate all templates and join all non-whitespace strings (**default**)</li></ul> |
|
||||||
|
| `properties` | `[]Property` | see [Properties][properties] below |
|
||||||
## Type
|
| `interactive` | `boolean` | when is true, the segment text is not escaped to allow the use of interactive prompt escape sequences - defaults to `false` |
|
||||||
|
|
||||||
Takes the `string` value referencing which segment logic it needs to run (see [segments][segments] for possible values).
|
|
||||||
|
|
||||||
## Style
|
## Style
|
||||||
|
|
||||||
|
@ -81,51 +79,20 @@ segment background as their foreground color.
|
||||||
Same as Powerline except that it will display even when disabled, but without text. That way it seems
|
Same as Powerline except that it will display even when disabled, but without text. That way it seems
|
||||||
as if the segment is not expanded, just like an accordion.
|
as if the segment is not expanded, just like an accordion.
|
||||||
|
|
||||||
## Powerline symbol
|
|
||||||
|
|
||||||
Text character to use when `"style": "powerline"`.
|
|
||||||
|
|
||||||
## Invert Powerline
|
|
||||||
|
|
||||||
If `true` this swaps the foreground and background colors. Can be useful when the character you want does not exist
|
|
||||||
in the perfectly mirrored variant for example.
|
|
||||||
|
|
||||||
## Leading diamond
|
|
||||||
|
|
||||||
Text character to use at the start of the segment. Will take the background color of the segment as
|
|
||||||
its foreground color.
|
|
||||||
|
|
||||||
## Trailing diamond
|
|
||||||
|
|
||||||
Text character to use at the end of the segment. Will take the background color of the segment as its foreground color.
|
|
||||||
|
|
||||||
## Template
|
|
||||||
|
|
||||||
A single line [template][templates] string leveraging a segment's properties to render the text.
|
|
||||||
|
|
||||||
## Templates
|
|
||||||
|
|
||||||
In some cases having a single [template][templates] string is a bit cumbersome. Templates allows you to span the
|
|
||||||
segment's [template][templates] string multiple lines where every [template][templates] is evaluated and depending
|
|
||||||
on what you aim to achieve, there are two possible outcomes based on `templates_logic`:
|
|
||||||
|
|
||||||
- `first_match`: return the first non-whitespace string and skip everything else
|
|
||||||
- `join`: evaluate all templates and join all non-whitespace strings
|
|
||||||
|
|
||||||
The default is `join`.
|
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
An array of **Properties** with a value. This is used inside of the segment logic to tweak what the output of the segment
|
An array of Properties with a value. This is used inside of the segment logic to tweak what the output of the segment will be.
|
||||||
will be. Segments have the ability to define their own Properties, but there are some general ones being used by the
|
Segments have the ability to define their own Properties, but there are some shared ones being used by the engine which allow
|
||||||
engine which allow you to customize the output even more.
|
you to customize the output even more.
|
||||||
|
|
||||||
### General-purpose properties
|
### Shared properties
|
||||||
|
|
||||||
You can use these on any segment, the engine is responsible for adding them correctly.
|
You can use these on any segment, the engine is responsible for adding them correctly.
|
||||||
|
|
||||||
- include_folders: `[]string`
|
| Name | Type |
|
||||||
- exclude_folders: `[]string`
|
| ----------------- | ---------- |
|
||||||
|
| `include_folders` | `[]string` |
|
||||||
|
| `exclude_folders` | `[]string` |
|
||||||
|
|
||||||
#### Include / Exclude Folders
|
#### Include / Exclude Folders
|
||||||
|
|
||||||
|
@ -166,10 +133,6 @@ You can also combine these properties:
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Interactive
|
|
||||||
|
|
||||||
When this is true, the segment text is not escaped to allow the use of interactive prompt escape sequences.
|
|
||||||
|
|
||||||
#### Notes
|
#### Notes
|
||||||
|
|
||||||
- Oh My Posh will accept both `/` and `\` as path separators for a folder and will match regardless of which
|
- Oh My Posh will accept both `/` and `\` as path separators for a folder and will match regardless of which
|
||||||
|
@ -183,6 +146,8 @@ This means that for user Bill, who has a user account `Bill` on Windows and `bil
|
||||||
`C:\Users\Bill\Foo` or `C:\Users\Bill\foo` on Windows but only `/home/bill/Foo` on Linux.
|
`C:\Users\Bill\Foo` or `C:\Users\Bill\foo` on Windows but only `/home/bill/Foo` on Linux.
|
||||||
|
|
||||||
[segments]: /docs/segments/angular
|
[segments]: /docs/segments/angular
|
||||||
|
[properties]: #properties
|
||||||
|
[style]: #style
|
||||||
[colors]: /docs/configuration/colors
|
[colors]: /docs/configuration/colors
|
||||||
[go-text-template]: https://golang.org/pkg/text/template/
|
[go-text-template]: https://golang.org/pkg/text/template/
|
||||||
[sprig]: https://masterminds.github.io/sprig/
|
[sprig]: https://masterminds.github.io/sprig/
|
||||||
|
|
|
@ -26,7 +26,9 @@ offers a few standard properties to work with.
|
||||||
|
|
||||||
## Environment variables
|
## Environment variables
|
||||||
|
|
||||||
- `.Env.VarName`: `string` - Any environment variable where `VarName` is the environment variable name
|
| Name | Type | Description |
|
||||||
|
| -------------- | -------- | ------------------------------------------------------------------------- |
|
||||||
|
| `.Env.VarName` | `string` | Any environment variable where `VarName` is the environment variable name |
|
||||||
|
|
||||||
:::tip
|
:::tip
|
||||||
If you're using PowerShell, you can override a function to populate environment variables before the
|
If you're using PowerShell, you can override a function to populate environment variables before the
|
||||||
|
@ -112,7 +114,7 @@ your config does not contain a git segment as Oh My Posh only populates the prop
|
||||||
You can make use of the following syntax to decorate text:
|
You can make use of the following syntax to decorate text:
|
||||||
|
|
||||||
| Syntax | Description |
|
| Syntax | Description |
|
||||||
| ---------------------- | --------------------------------------------- |
|
| ---------------------- | ------------------------------------- |
|
||||||
| `<b>bold</b>` | `bold` as bold text |
|
| `<b>bold</b>` | `bold` as bold text |
|
||||||
| `<u>underline</u>` | `underline` as underlined text |
|
| `<u>underline</u>` | `underline` as underlined text |
|
||||||
| `<o>overline</o>` | `overline` as overlined text |
|
| `<o>overline</o>` | `overline` as overlined text |
|
||||||
|
|
|
@ -37,8 +37,8 @@ You need to extend or create a custom theme with your tooltips. For example:
|
||||||
"style": "diamond",
|
"style": "diamond",
|
||||||
"foreground": "#193549",
|
"foreground": "#193549",
|
||||||
"background": "#fffb38",
|
"background": "#fffb38",
|
||||||
"leading_diamond": "",
|
"leading_diamond": "\ue0b6",
|
||||||
"trailing_diamond": "",
|
"trailing_diamond": "\ue0b4",
|
||||||
"template": "{{ .HEAD }}{{ if .Staging.Changed }} \uF046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uF044 {{ .Working.String }}{{ end }}",
|
"template": "{{ .HEAD }}{{ if .Staging.Changed }} \uF046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uF044 {{ .Working.String }}{{ end }}",
|
||||||
"properties": {
|
"properties": {
|
||||||
"fetch_status": true,
|
"fetch_status": true,
|
||||||
|
|
|
@ -24,7 +24,6 @@ By enabling Transient Prompt, you can replace the prompt with some other content
|
||||||
|
|
||||||
![After Transient](/img/transient-after.gif)
|
![After Transient](/img/transient-after.gif)
|
||||||
|
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
You need to extend or create a custom theme with your transient prompt. For example:
|
You need to extend or create a custom theme with your transient prompt. For example:
|
||||||
|
@ -43,13 +42,15 @@ You need to extend or create a custom theme with your transient prompt. For exam
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
The configuration has the following properties:
|
## Properties
|
||||||
|
|
||||||
- foreground: `string` [color][colors]
|
| Name | Type | Description |
|
||||||
- foreground_templates: foreground [color templates][color-templates]
|
| ---------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
- background: `string` [color][colors]
|
| `foreground` | `string` | [color][colors] |
|
||||||
- background_templates: background [color templates][color-templates]
|
| `foreground_templates` | `array` | [color templates][color-templates] |
|
||||||
- template: `string` - a fully featured [template][templates] - defaults to `{{ .Shell }}> `
|
| `background` | `string` | [color][colors] |
|
||||||
|
| `background_templates` | `array` | [color templates][color-templates] |
|
||||||
|
| `template` | `string` | a go [text/template][go-text-template] template extended with [sprig][sprig] utilizing the properties below - defaults to `{{ .Shell }}> ` |
|
||||||
|
|
||||||
## Enable the feature
|
## Enable the feature
|
||||||
|
|
||||||
|
|
|
@ -116,7 +116,9 @@ Display something new.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- newprop: `string` - the new text to show - defaults to `\uEFF1`
|
| Name | Type | Description |
|
||||||
|
| --------- | -------- | ------------------------------------------- |
|
||||||
|
| `newprop` | `string` | the new text to show - defaults to `\uEFF1` |
|
||||||
````
|
````
|
||||||
|
|
||||||
## Map the new documentation in the sidebar
|
## Map the new documentation in the sidebar
|
||||||
|
|
|
@ -23,13 +23,12 @@ Display the currently active [Angular CLI][angular-cli-docs] version.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- home_enabled: `boolean` - display the segment in the HOME folder or not - defaults to `false`
|
| Name | Type | Description |
|
||||||
- fetch_version: `boolean` - fetch the active version or not; useful if all you need is an icon indicating `ng`
|
| ---------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
- display_mode: `string` - determines when the segment is displayed
|
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` |
|
||||||
- `always`: the segment is always displayed
|
| `fetch_version` | `boolean` | fetch the active version or not; useful if all you need is an icon indicating `ng` |
|
||||||
- `files`: the segment is only displayed when `angular.json` file is present (default)
|
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `angular.json` file is present (**default**)</li></ul> |
|
||||||
- version_url_template: `string` - a go [text/template][go-text-template] [template][templates] that creates
|
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||||
the URL of the version info / release notes
|
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -43,12 +42,14 @@ the URL of the version info / release notes
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Full`: `string` - the full version
|
| Name | Type | Description |
|
||||||
- `.Major`: `string` - major number
|
| -------- | -------- | -------------------------------------------------- |
|
||||||
- `.Minor`: `string` - minor number
|
| `.Full` | `string` | the full version |
|
||||||
- `.Patch`: `string` - patch number
|
| `.Major` | `string` | major number |
|
||||||
- `.URL`: `string` - URL of the version info / release notes
|
| `.Minor` | `string` | minor number |
|
||||||
- `.Error`: `string` - error encountered when fetching the version string
|
| `.Patch` | `string` | patch number |
|
||||||
|
| `.URL` | `string` | URL of the version info / release notes |
|
||||||
|
| `.Error` | `string` | error encountered when fetching the version string |
|
||||||
|
|
||||||
[go-text-template]: https://golang.org/pkg/text/template/
|
[go-text-template]: https://golang.org/pkg/text/template/
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -23,7 +23,10 @@ Display the currently active AWS profile and region.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- display_default: `boolean` - display the segment or not when the user profile matches `default` - defaults
|
| Name | Type | Description |
|
||||||
|
| ----------------- | ------------------------------------------------------------------------------ | ----------- |
|
||||||
|
| `display_default` | `boolean` - display the segment or not when the user profile matches `default` | defaults |
|
||||||
|
|
||||||
to `true`
|
to `true`
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
@ -38,7 +41,9 @@ to `true`
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Profile`: `string` - the currently active profile
|
| Name | Type | Description |
|
||||||
- `.Region`: `string` - the currently active region
|
| ---------- | -------- | ---------------------------- |
|
||||||
|
| `.Profile` | `string` | the currently active profile |
|
||||||
|
| `.Region` | `string` | the currently active region |
|
||||||
|
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -23,10 +23,9 @@ Display the currently active Azure subscription information.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- source: `string` - where to fetch the information from - defaults to `first_match`
|
| Name | Type | Description |
|
||||||
- `first_match`: try the CLI config first, then the PowerShell module. The first to resolve is displayed
|
| -------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- `cli`: fetch the information from the CLI config
|
| `source` | `string` | <ul><li>`first_match`: try the CLI config first, then the PowerShell module. The first to resolve is displayed (**default**)</li><li>`cli`: fetch the information from the CLI config</li><li>`pwsh`: fetch the information from the PowerShell Module config</li></ul> |
|
||||||
- `pwsh`: fetch the information from the PowerShell Module config
|
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -40,15 +39,17 @@ Display the currently active Azure subscription information.
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.EnvironmentName`: `string` - account environment name
|
| Name | Type | Description |
|
||||||
- `.HomeTenantID`: `string` - home tenant id
|
| ------------------ | --------- | -------------------------------------------------------------- |
|
||||||
- `.ID`: `string` - account/subscription id
|
| `.EnvironmentName` | `string` | account environment name |
|
||||||
- `.IsDefault`: `boolean` - is the default account or not
|
| `.HomeTenantID` | `string` | home tenant id |
|
||||||
- `.Name`: `string` - account name
|
| `.ID` | `string` | account/subscription id |
|
||||||
- `.State`: `string` - account state
|
| `.IsDefault` | `boolean` | is the default account or not |
|
||||||
- `.TenantID`: `string` - tenant id
|
| `.Name` | `string` | account name |
|
||||||
- `.User.Name`: `string` - user name
|
| `.State` | `string` | account state |
|
||||||
- `.User.Type`: `string` - user type
|
| `.TenantID` | `string` | tenant id |
|
||||||
- `.Origin`: `string` - where we received the information from, can be `CLI` or `PWSH`
|
| `.User.Name` | `string` | user name |
|
||||||
|
| `.User.Type` | `string` | user type |
|
||||||
|
| `.Origin` | `string` | where we received the information from, can be `CLI` or `PWSH` |
|
||||||
|
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -27,12 +27,12 @@ Display the currently active [Azure Functions CLI][az-func-core-tools] version.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- home_enabled: `boolean` - display the segment in the HOME folder or not - defaults to `false`
|
| Name | Type | Description |
|
||||||
- fetch_version: `boolean` - fetch the Azure Functions CLI version - defaults to `true`
|
| ---------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- missing_command_text: `string` - text to display when the command is missing - defaults to empty
|
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` |
|
||||||
- display_mode: `string` - determines when the segment is displayed
|
| `fetch_version` | `boolean` | fetch the Azure Functions CLI version - defaults to `true` |
|
||||||
- `always`: the segment is always displayed
|
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty |
|
||||||
- `files`: the segment is only displayed when a `host.json` or `local.settings.json` files is present (default)
|
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when a `host.json` or `local.settings.json` files is present (**default**)</li></ul> |
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -46,11 +46,13 @@ Display the currently active [Azure Functions CLI][az-func-core-tools] version.
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Full`: `string` - the full version
|
| Name | Type | Description |
|
||||||
- `.Major`: `string` - major number
|
| -------- | -------- | -------------------------------------------------- |
|
||||||
- `.Minor`: `string` - minor number
|
| `.Full` | `string` | the full version |
|
||||||
- `.Patch`: `string` - patch number
|
| `.Major` | `string` | major number |
|
||||||
- `.Error`: `string` - error encountered when fetching the version string
|
| `.Minor` | `string` | minor number |
|
||||||
|
| `.Patch` | `string` | patch number |
|
||||||
|
| `.Error` | `string` | error encountered when fetching the version string |
|
||||||
|
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
[az-func-core-tools]: https://github.com/Azure/azure-functions-core-tools
|
[az-func-core-tools]: https://github.com/Azure/azure-functions-core-tools
|
||||||
|
|
|
@ -37,11 +37,13 @@ Battery displays the remaining power percentage for your battery.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- display_error: `boolean` - show the error context when failing to retrieve the battery information - defaults to `false`
|
| Name | Type | Description |
|
||||||
- charging_icon: `string` - icon to display when charging - defaults to empty
|
| ------------------- | --------- | --------------------------------------------------------------------------------------------- |
|
||||||
- discharging_icon: `string` - icon to display when discharging - defaults to empty
|
| `display_error` | `boolean` | show the error context when failing to retrieve the battery information - defaults to `false` |
|
||||||
- charged_icon: `string` - icon to display when fully charged - defaults to empty
|
| `charging_icon` | `string` | icon to display when charging - defaults to empty |
|
||||||
- not_charging_icon: `string` - icon to display when fully charged - defaults to empty
|
| `discharging_icon` | `string` | icon to display when discharging - defaults to empty |
|
||||||
|
| `charged_icon` | `string` | icon to display when fully charged - defaults to empty |
|
||||||
|
| `not_charging_icon` | `string` | icon to display when fully charged - defaults to empty |
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -55,20 +57,18 @@ Battery displays the remaining power percentage for your battery.
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.State`: `struct` - the battery state, has a `.String` function
|
| Name | Type | Description |
|
||||||
- `.Current`: `float64` - Current (momentary) charge rate (in mW).
|
| ---------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- `.Full`: `float64` - Last known full capacity (in mWh)
|
| `.State` | `struct` | the battery state, has a `.String` function |
|
||||||
- `.Design`: `float64` - Reported design capacity (in mWh)
|
| `.Current` | `float64` | Current (momentary) charge rate (in mW). |
|
||||||
- `.ChargeRate`: `float64` - Current (momentary) charge rate (in mW). It is always non-negative, consult .State
|
| `.Full` | `float64` | Last known full capacity (in mWh) |
|
||||||
field to check whether it means charging or discharging (on some systems this might be always `0` if the battery
|
| `.Design` | `float64` | Reported design capacity (in mWh) |
|
||||||
doesn't support it)
|
| `.ChargeRate` | `float64` | Current (momentary) charge rate (in mW). It is always non-negative, consult .State field to check whether it means charging or discharging (on some systems this might be always `0` if the battery doesn't support it) |
|
||||||
- `.Voltage`: `float64` - Current voltage (in V)
|
| `.Voltage` | `float64` | Current voltage (in V) |
|
||||||
- `.DesignVoltage`: `float64` - Design voltage (in V). Some systems (e.g. macOS) do not provide a separate
|
| `.DesignVoltage` | `float64` | Design voltage (in V). Some systems (e.g. macOS) do not provide a separate value for this. In such cases, or if getting this fails, but getting `Voltage` succeeds, this field will have the same value as `Voltage`, for convenience |
|
||||||
value for this. In such cases, or if getting this fails, but getting `Voltage` succeeds, this field will have
|
| `.Percentage` | `float64` | the current battery percentage |
|
||||||
the same value as `Voltage`, for convenience
|
| `.Error` | `string` | the error in case fetching the battery information failed |
|
||||||
- `.Percentage`: `float64` - the current battery percentage
|
| `.Icon` | `string` | the icon based on the battery state |
|
||||||
- `.Error`: `string` - the error in case fetching the battery information failed
|
|
||||||
- `.Icon`: `string` - the icon based on the battery state
|
|
||||||
|
|
||||||
[colors]: /docs/configuration/colors
|
[colors]: /docs/configuration/colors
|
||||||
[battery]: https://github.com/distatus/battery/blob/master/battery.go#L78
|
[battery]: https://github.com/distatus/battery/blob/master/battery.go#L78
|
||||||
|
|
|
@ -41,32 +41,39 @@ NOTE: Temperature units are in degrees C and specific gravity is expressed as `X
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- user_id: `string` - as provided by Brewfather's Generate API Key screen.
|
| Name | Type | Description |
|
||||||
- api_key: `string` - as provided by Brewfather's Generate API Key screen.
|
| --------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- batch_id: `string` - Get this by navigating to the desired batch on the brewfather website,
|
| `user_id` | `string` | as provided by Brewfather's Generate API Key screen |
|
||||||
the batch id is at the end of the URL in the address bar.
|
| `api_key` | `string` | as provided by Brewfather's Generate API Key screen |
|
||||||
- http_timeout: `int` in milliseconds - How long to wait for the Brewfather service to answer the request. Default 2 seconds.
|
| `batch_id` | `string` | Get this by navigating to the desired batch on the brewfather website, the batch id is at the end of the URL in the address bar |
|
||||||
- cache_timeout: `int` in minutes - How long to wait before updating the data from Brewfather. Default is 5 minutes.
|
| `http_timeout` | `int` | in milliseconds - How long to wait for the Brewfather service to answer the request. Default 2 seconds |
|
||||||
- day_icon: `string` - icon or letter to use to indicate days. Default is "d".
|
| `cache_timeout` | `int` | in minutes - How long to wait before updating the data from Brewfather. Default is 5 minutes |
|
||||||
|
| `day_icon` | `string` | icon or letter to use to indicate days. Default is "d" |
|
||||||
|
|
||||||
|
## Icons
|
||||||
|
|
||||||
You can override the icons for temperature trend as used by template property `.TemperatureTrendIcon` with:
|
You can override the icons for temperature trend as used by template property `.TemperatureTrendIcon` with:
|
||||||
|
|
||||||
- doubleup_icon - for increases of more than 4°C, default is ↑↑
|
| Name | Description |
|
||||||
- singleup_icon - increase 2-4°C, default is ↑
|
| -------------------- | ----------------------------------------------- |
|
||||||
- fortyfiveup_icon - increase 0.5-2°C, default is ↗
|
| `doubleup_icon` | for increases of more than 4°C, default is `↑↑` |
|
||||||
- flat_icon - change less than 0.5°C, default is →
|
| `singleup_icon` | increase 2-4°C, default is `↑` |
|
||||||
- fortyfivedown_icon - decrease 0.5-2°C, default is ↘
|
| `fortyfiveup_icon` | increase 0.5-2°C, default is `↗` |
|
||||||
- singledown_icon - decrease 2-4°C, default is ↓
|
| `flat_icon` | change less than 0.5°C, default is `→` |
|
||||||
- doubledown_icon - decrease more than 4°C, default is ↓↓
|
| `fortyfivedown_icon` | decrease 0.5-2°C, default is `↘` |
|
||||||
|
| `singledown_icon` | decrease 2-4°C, default is `↓` |
|
||||||
|
| `doubledown_icon` | decrease more than 4°C, default is `↓↓` |
|
||||||
|
|
||||||
You can override the default icons for batch status as used by template property `.StatusIcon` with:
|
You can override the default icons for batch status as used by template property `.StatusIcon` with:
|
||||||
|
|
||||||
- planning_status_icon
|
| Name |
|
||||||
- brewing_status_icon
|
| -------------------------- |
|
||||||
- fermenting_status_icon
|
| `planning_status_icon` |
|
||||||
- conditioning_status_icon
|
| `brewing_status_icon` |
|
||||||
- completed_status_icon
|
| `fermenting_status_icon` |
|
||||||
- archived_status_icon
|
| `conditioning_status_icon` |
|
||||||
|
| `completed_status_icon` |
|
||||||
|
| `archived_status_icon` |
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -80,65 +87,71 @@ You can override the default icons for batch status as used by template property
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
Commonly used fields
|
| Name | Type | Description |
|
||||||
|
| ----------------------- | -------- | ------------------------------------------------------------------------------------------------ |
|
||||||
|
| .Status | `string` | One of "Planning", "Brewing", "Fermenting", "Conditioning", "Completed" or "Archived" |
|
||||||
|
| .StatusIcon | `string` | Icon representing above stats. Can be overridden with properties shown above |
|
||||||
|
| .TemperatureTrendIcon | `string` | Icon showing temperature trend based on latest and previous reading |
|
||||||
|
| .DaysFermenting | `int` | days since start of fermentation |
|
||||||
|
| .DaysBottled | `int` | days since bottled/kegged |
|
||||||
|
| .DaysBottledOrFermented | `int` | one of the above, chosen automatically based on batch status |
|
||||||
|
| .Recipe.Name | `string` | The recipe being brewed in this batch |
|
||||||
|
| .BatchName | `string` | The name of this batch |
|
||||||
|
| .BatchNumer | `int` | The number of this batch |
|
||||||
|
| .MeasuredAbv | `float` | The ABV for the batch - either estimated from recipe or calculated from entered OG and FG values |
|
||||||
|
| .ReadingAge | `int` | age in hours of most recent reading or -1 if there are no readings available |
|
||||||
|
|
||||||
- .Status: `string` - One of "Planning", "Brewing", "Fermenting", "Conditioning", "Completed" or "Archived"
|
#### Reading
|
||||||
- .StatusIcon `string` - Icon representing above stats. Can be overridden with properties shown above
|
|
||||||
- .TemperatureTrendIcon `string` - Icon showing temperature trend based on latest and previous reading
|
|
||||||
- .DaysFermenting `int` - days since start of fermentation
|
|
||||||
- .DaysBottled `int` - days since bottled/kegged
|
|
||||||
- .DaysBottledOrFermented `int` - one of the above, chosen automatically based on batch status
|
|
||||||
- .Recipe.Name: `string` - The recipe being brewed in this batch
|
|
||||||
- .BatchName `string` - The name of this batch
|
|
||||||
- .BatchNumer `int` - The number of this batch
|
|
||||||
- .MeasuredAbv: `float` - The ABV for the batch - either estimated from recipe or calculated from entered OG and FG values
|
|
||||||
- .ReadingAge `int` - age in hours of most recent reading or -1 if there are no readings available
|
|
||||||
|
|
||||||
.Reading contains the most recent data from devices or manual entry as visible on the Brewfather's batch Readings graph.
|
`.Reading` contains the most recent data from devices or manual entry as visible on the Brewfather's batch Readings graph.
|
||||||
If there are no readings available, .Reading will be null.
|
If there are no readings available, `.Reading` will be null.
|
||||||
|
|
||||||
- .Reading.Gravity: `float` - specific gravity (in decimal point format)
|
| Name | Type | Description |
|
||||||
- .Reading.Temperature `float` - temperature in °C
|
| -------------------- | -------- | ------------------------------------------ |
|
||||||
- .Reading.Time `int` - unix timestamp of reading
|
| .Reading.Gravity | `float` | specific gravity (in decimal point format) |
|
||||||
- .Reading.Comment `string` - comment attached to this reading
|
| .Reading.Temperature | `float` | temperature in °C |
|
||||||
- .Reading.DeviceType `string` - source of the reading, e.g. "Tilt"
|
| .Reading.Time | `int` | unix timestamp of reading |
|
||||||
- .Reading.DeviceID `string` - id of the device, e.g. "PINK"
|
| .Reading.Comment | `string` | comment attached to this reading |
|
||||||
|
| .Reading.DeviceType | `string` | source of the reading, e.g. "Tilt" |
|
||||||
|
| .Reading.DeviceID | `string` | id of the device, e.g. "PINK" |
|
||||||
|
|
||||||
Additional template properties
|
#### Additional properties
|
||||||
|
|
||||||
- .MeasuredOg: `float` - The OG for the batch as manually entered into Brewfather
|
| Name | Type | Description |
|
||||||
- .MeasuredFg: `float` -The FG for the batch as manually entered into Brewfather
|
| ----------------- | -------- | --------------------------------------------------------------------- |
|
||||||
- .BrewDate: `int` - The unix timestamp of the brew day
|
| .MeasuredOg | `float` | The OG for the batch as manually entered into Brewfather |
|
||||||
- .FermentStartDate: `int` The unix timestamp when fermentation was started
|
| .MeasuredFg | `float` | The FG for the batch as manually entered into Brewfather |
|
||||||
- .BottlingDate: `time` - The unix timestamp when bottled/kegged
|
| .BrewDate | `int` | The unix timestamp of the brew day |
|
||||||
- .TemperatureTrend `float` - The difference between the most recent and previous temperature in °C
|
| .FermentStartDate | `int` | The unix timestamp when fermentation was started |
|
||||||
- .DayIcon `string` - given by "day_icon", or "d" by default
|
| .BottlingDate | `time` | The unix timestamp when bottled/kegged |
|
||||||
|
| .TemperatureTrend | `float` | The difference between the most recent and previous temperature in °C |
|
||||||
|
| .DayIcon | `string` | given by "day_icon", or "d" by default |
|
||||||
|
|
||||||
Hyperlink support
|
#### Hyperlink support
|
||||||
|
|
||||||
- .URL `string` - the URL for the batch in the Brewfather app. You can use this to add a hyperlink to the segment
|
| Name | Type | Description |
|
||||||
if you are using a terminal that supports it. The default template implements this.
|
| ------ | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
|
| `.URL` | `string` | the URL for the batch in the Brewfather app. You can use this to add a hyperlink to the segment if you are using a terminal that supports it. The default template implements this |
|
||||||
|
|
||||||
Hyperlink formatting example
|
Hyperlink formatting example
|
||||||
|
|
||||||
````json
|
```json
|
||||||
{
|
{
|
||||||
// General format: [Text](Url)
|
// General format: [Text](Url)
|
||||||
"template": "[{{.StatusIcon}} {{if .DaysBottledOrFermented}}{{.DaysBottledOrFermented}}d{{end}} {{.Recipe.Name}}]({{.URL}})"
|
"template": "[{{.StatusIcon}} {{if .DaysBottledOrFermented}}{{.DaysBottledOrFermented}}d{{end}} {{.Recipe.Name}}]({{.URL}})"
|
||||||
}
|
}
|
||||||
|
```
|
||||||
````
|
|
||||||
|
|
||||||
### Advanced Templating
|
### Advanced Templating
|
||||||
|
|
||||||
The built in template will provides key useful information. However, you can use the properties about the batch
|
The built in template will provides key useful information. However, you can use the properties about the batch
|
||||||
to build your own. For reference, the built-in template looks like this:
|
to build your own. For reference, the built-in template looks like this:
|
||||||
|
|
||||||
````json
|
```json
|
||||||
{
|
{
|
||||||
"template": "{{.StatusIcon}} {{if .DaysBottledOrFermented}}{{.DaysBottledOrFermented}}{{.DayIcon}} {{end}}[{{.Recipe.Name}}]({{.URL}}) {{printf \"%.1f\" .MeasuredAbv}}%{{ if and (.Reading) (eq .Status \"Fermenting\")}}: {{printf \"%.3f\" .Reading.Gravity}} {{.Reading.Temperature}}\u00b0 {{.TemperatureTrendIcon}}{{end}}"
|
"template": "{{.StatusIcon}} {{if .DaysBottledOrFermented}}{{.DaysBottledOrFermented}}{{.DayIcon}} {{end}}[{{.Recipe.Name}}]({{.URL}}) {{printf \"%.1f\" .MeasuredAbv}}%{{ if and (.Reading) (eq .Status \"Fermenting\")}}: {{printf \"%.3f\" .Reading.Gravity}} {{.Reading.Temperature}}\u00b0 {{.TemperatureTrendIcon}}{{end}}"
|
||||||
}
|
}
|
||||||
````
|
```
|
||||||
|
|
||||||
### Unit conversion
|
### Unit conversion
|
||||||
|
|
||||||
|
@ -148,31 +161,35 @@ The following conversion functions are available to the template to convert to o
|
||||||
|
|
||||||
#### Temperature
|
#### Temperature
|
||||||
|
|
||||||
- DegCToF - input: `float` degrees in C; output `float` degrees in F (1 decimal place).
|
| Name | Description |
|
||||||
- DegCToKelvin- input: `float` degrees in C; output `float` Kelvin (1 decimal place).
|
| -------------- | -------------------------------------------------------------------------- |
|
||||||
|
| `DegCToF` | input: `float` degrees in C; output `float` degrees in F (1 decimal place) |
|
||||||
|
| `DegCToKelvin` | input: `float` degrees in C; output `float` Kelvin (1 decimal place) |
|
||||||
|
|
||||||
#### Gravity
|
#### Gravity
|
||||||
|
|
||||||
- SGToBrix - input `float` SG in x.xxx decimal; output `float` Brix (2 decimal places)
|
| Name | Description |
|
||||||
- SGToPlato - input `float` SG in x.xxx decimal; output `float` Plato (2 decimal places)
|
| --------- | -------------------------------------------------------------------------- |
|
||||||
|
| SGToBrix | input `float` SG in x.xxx decimal; output `float` Brix (2 decimal places) |
|
||||||
|
| SGToPlato | input `float` SG in x.xxx decimal; output `float` Plato (2 decimal places) |
|
||||||
|
|
||||||
*(These use the polynomial conversions from [Wikipedia][wikipedia_gravity_page])*
|
_(These use the polynomial conversions from [Wikipedia][wikipedia_gravity_page])_
|
||||||
|
|
||||||
#### Example
|
#### Example
|
||||||
|
|
||||||
```` json
|
```json
|
||||||
{
|
{
|
||||||
"template": "{{if .Reading}}{{.SGToBrix .Reading.Gravity}}°Bx, {{.DegCToF .Reading.Temperature}}°F{{end}}"
|
"template": "{{if .Reading}}{{.SGToBrix .Reading.Gravity}}°Bx, {{.DegCToF .Reading.Temperature}}°F{{end}}"
|
||||||
}
|
}
|
||||||
````
|
```
|
||||||
|
|
||||||
To display gravity as SG in XXXX format (e.g. "1020" instead of "1.020"), use the `mulf` template function
|
To display gravity as SG in XXXX format (e.g. "1020" instead of "1.020"), use the `mulf` template function
|
||||||
|
|
||||||
```` json
|
```json
|
||||||
{
|
{
|
||||||
"template": "{{if .Reading}}{{.mulf 1000 .Reading.Gravity}}, {{.DegCToF .Reading.Temperature}}°F{{end}}"
|
"template": "{{if .Reading}}{{.mulf 1000 .Reading.Gravity}}, {{.DegCToF .Reading.Temperature}}°F{{end}}"
|
||||||
}
|
}
|
||||||
````
|
```
|
||||||
|
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
[brewfather]: http://brewfather.app
|
[brewfather]: http://brewfather.app
|
||||||
|
|
|
@ -23,14 +23,12 @@ Display the active [CDS CLI][sap-cap-cds] version.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- home_enabled: `boolean` - display the segment in the HOME folder or not - defaults to `false`
|
| Name | Type | Description |
|
||||||
- fetch_version: `boolean` - fetch the CDS version - defaults to `true`
|
| ---------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- missing_command_text: `string` - text to display when the cds command is missing - defaults to empty
|
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` |
|
||||||
- display_mode: `string` - determines when the segment is displayed
|
| `fetch_version` | `boolean` | fetch the CDS version - defaults to `true` |
|
||||||
- `always`: the segment is always displayed
|
| `missing_command_text` | `string` | text to display when the cds command is missing - defaults to empty |
|
||||||
- `files`: the segment is displayed when `.cdsrc.json`, `.cdsrc-private` or `*.cds` file is present
|
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is displayed when `.cdsrc.json`, `.cdsrc-private` or `*.cds` file is present</li><li>`context`: the segment is displayed when conditions from `files` mode are fulfilled or `package.json` file is present and `@sap/cds` is in `dependencies` section (**default**)</li></ul> |
|
||||||
- `context`: (default) the segment is displayed when conditions from `files` mode are fulfilled or
|
|
||||||
`package.json` file is present and `@sap/cds` is in `dependencies` section
|
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -44,12 +42,14 @@ Display the active [CDS CLI][sap-cap-cds] version.
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Full`: `string` - the full version
|
| Name | Type | Description |
|
||||||
- `.Major`: `string` - major number
|
| ---------------- | -------- | -------------------------------------------------- |
|
||||||
- `.Minor`: `string` - minor number
|
| `.Full` | `string` | the full version |
|
||||||
- `.Patch`: `string` - patch number
|
| `.Major` | `string` | major number |
|
||||||
- `.Error`: `string` - error encountered when fetching the version string
|
| `.Minor` | `string` | minor number |
|
||||||
- `.HasDependency`: `bool` - a flag if `@sap/cds` was found in `package.json`
|
| `.Patch` | `string` | patch number |
|
||||||
|
| `.Error` | `string` | error encountered when fetching the version string |
|
||||||
|
| `.HasDependency` | `bool` | a flag if `@sap/cds` was found in `package.json` |
|
||||||
|
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
[sap-cap-cds]: https://cap.cloud.sap/docs/tools/#command-line-interface-cli
|
[sap-cap-cds]: https://cap.cloud.sap/docs/tools/#command-line-interface-cli
|
||||||
|
|
|
@ -23,14 +23,13 @@ Display the active [Cloud Foundry CLI][cloud-foundry] version.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- home_enabled: `boolean` - display the segment in the HOME folder or not - defaults to `false`
|
| Name | Type | Description |
|
||||||
- fetch_version: `boolean` - display the Cloud Foundry CLI version - defaults to `true`
|
| ---------------------- | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- missing_command_text: `string` - text to display when the java command is missing - defaults to empty
|
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` |
|
||||||
- display_mode: `string` - determines when the segment is displayed
|
| `fetch_version` | `boolean` | display the Cloud Foundry CLI version - defaults to `true` |
|
||||||
- `always`: the segment is always displayed
|
| `missing_command_text` | `string` | text to display when the java command is missing - defaults to empty |
|
||||||
- `files`: the segment is displayed when `manifest.yml` or `mta.yaml` file is present (default)
|
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is displayed when `manifest.yml` or `mta.yaml` file is present (**default**)</li></ul> |
|
||||||
- version_url_template: `string` - a go [text/template][go-text-template] [template][templates] that creates
|
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||||
the URL of the version info / release notes
|
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -44,12 +43,14 @@ the URL of the version info / release notes
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Full`: `string` - the full version
|
| Name | Type | Description |
|
||||||
- `.Major`: `string` - major number
|
| -------- | -------- | -------------------------------------------------- |
|
||||||
- `.Minor`: `string` - minor number
|
| `.Full` | `string` | the full version |
|
||||||
- `.Patch`: `string` - patch number
|
| `.Major` | `string` | major number |
|
||||||
- `.URL`: `string` - URL of the version info / release notes
|
| `.Minor` | `string` | minor number |
|
||||||
- `.Error`: `string` - error encountered when fetching the version string
|
| `.Patch` | `string` | patch number |
|
||||||
|
| `.URL` | `string` | URL of the version info / release notes |
|
||||||
|
| `.Error` | `string` | error encountered when fetching the version string |
|
||||||
|
|
||||||
[go-text-template]: https://golang.org/pkg/text/template/
|
[go-text-template]: https://golang.org/pkg/text/template/
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -33,10 +33,12 @@ Display the details of the logged [Cloud Foundry endpoint][cf-target] (`cf targe
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Org`: `string` - Cloud Foundry organization
|
| Name | Type | Description |
|
||||||
- `.Space`: `string` - Cloud Foundry space
|
| -------- | -------- | -------------------------- |
|
||||||
- `.URL`: `string` - Cloud Foundry API URL
|
| `.Org` | `string` | Cloud Foundry organization |
|
||||||
- `.User`: `string` - logged in user
|
| `.Space` | `string` | Cloud Foundry space |
|
||||||
|
| `.URL` | `string` | Cloud Foundry API URL |
|
||||||
|
| `.User` | `string` | logged in user |
|
||||||
|
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
[cf-target]: https://cli.cloudfoundry.org/en-US/v8/target.html
|
[cf-target]: https://cli.cloudfoundry.org/en-US/v8/target.html
|
||||||
|
|
|
@ -23,14 +23,13 @@ Display the currently active [Cmake][cmake-github] version.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- home_enabled: `boolean` - display the segment in the HOME folder or not - defaults to `false`
|
| Name | Type | Description |
|
||||||
- fetch_version: `boolean` - display the cmake version - defaults to `true`
|
| ---------------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- missing_command_text: `string` - text to display when the command is missing - defaults to empty
|
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` |
|
||||||
- display_mode: `string` - determines when the segment is displayed
|
| `fetch_version` | `boolean` | display the cmake version - defaults to `true` |
|
||||||
- `always`: the segment is always displayed
|
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty |
|
||||||
- `files`: the segment is only displayed when `*.cmake` or `CMakeLists.txt` files are present (default)
|
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.cmake` or `CMakeLists.txt` files are present (**default**)</li></ul> |
|
||||||
- version_url_template: `string` - a go [text/template][go-text-template] [template][templates] that creates
|
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||||
the URL of the version info / release notes
|
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -44,12 +43,14 @@ Display the currently active [Cmake][cmake-github] version.
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Full`: `string` - the full version
|
| Name | Type | Description |
|
||||||
- `.Major`: `string` - major number
|
| -------- | -------- | -------------------------------------------------- |
|
||||||
- `.Minor`: `string` - minor number
|
| `.Full` | `string` | the full version |
|
||||||
- `.Patch`: `string` - patch number
|
| `.Major` | `string` | major number |
|
||||||
- `.URL`: `string` - URL of the version info / release notes
|
| `.Minor` | `string` | minor number |
|
||||||
- `.Error`: `string` - error encountered when fetching the version string
|
| `.Patch` | `string` | patch number |
|
||||||
|
| `.URL` | `string` | URL of the version info / release notes |
|
||||||
|
| `.Error` | `string` | error encountered when fetching the version string |
|
||||||
|
|
||||||
[cmake-github]: https://github.com/Kitware/CMake
|
[cmake-github]: https://github.com/Kitware/CMake
|
||||||
[go-text-template]: https://golang.org/pkg/text/template/
|
[go-text-template]: https://golang.org/pkg/text/template/
|
||||||
|
|
|
@ -42,9 +42,11 @@ error). The `&&` functionality will join the output of the commands when success
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- shell: `string` - the shell in which to run the command in. Uses `shell -c command` under the hood.
|
| Name | Type | Description |
|
||||||
- command: `string` - the command(s) to run
|
| --------- | -------- | --------------------------------------------------------------------------------- |
|
||||||
- script: `string` - the path to a script to run
|
| `shell` | `string` | the shell in which to run the command in. Uses `shell -c command` under the hood. |
|
||||||
|
| `command` | `string` | the command(s) to run |
|
||||||
|
| `script` | `string` | the path to a script to run |
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -58,7 +60,7 @@ error). The `&&` functionality will join the output of the commands when success
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Output`: `string` - the output of the command or script.
|
|`.Output`|`string`|the output of the command or script.|
|
||||||
|
|
||||||
[env]: /docs/configuration/templates#environment-variables
|
[env]: /docs/configuration/templates#environment-variables
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -23,14 +23,13 @@ Display the currently active crystal version.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- home_enabled: `boolean` - display the segment in the HOME folder or not - defaults to `false`
|
| Name | Type | Description |
|
||||||
- fetch_version: `boolean` - fetch the julia version - defaults to `true`
|
| ---------------------- | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- missing_command_text: `string` - text to display when the command is missing - defaults to empty
|
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` |
|
||||||
- display_mode: `string` - determines when the segment is displayed
|
| `fetch_version` | `boolean` | fetch the julia version - defaults to `true` |
|
||||||
- `always`: the segment is always displayed
|
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty |
|
||||||
- `files`: the segment is only displayed when `*.cr` or `shard.yml` files are present (default)
|
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.cr` or `shard.yml` files are present (**default**)</li></ul> |
|
||||||
- version_url_template: `string` - a go [text/template][go-text-template] [template][templates] that creates
|
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||||
the URL of the version info / release notes
|
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -44,12 +43,14 @@ the URL of the version info / release notes
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Full`: `string` - the full version
|
| Name | Type | Description |
|
||||||
- `.Major`: `string` - major number
|
| -------- | -------- | -------------------------------------------------- |
|
||||||
- `.Minor`: `string` - minor number
|
| `.Full` | `string` | the full version |
|
||||||
- `.Patch`: `string` - patch number
|
| `.Major` | `string` | major number |
|
||||||
- `.URL`: `string` - URL of the version info / release notes
|
| `.Minor` | `string` | minor number |
|
||||||
- `.Error`: `string` - error encountered when fetching the version string
|
| `.Patch` | `string` | patch number |
|
||||||
|
| `.URL` | `string` | URL of the version info / release notes |
|
||||||
|
| `.Error` | `string` | error encountered when fetching the version string |
|
||||||
|
|
||||||
[go-text-template]: https://golang.org/pkg/text/template/
|
[go-text-template]: https://golang.org/pkg/text/template/
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -23,15 +23,13 @@ Display the currently active dart version.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- home_enabled: `boolean` - display the segment in the HOME folder or not - defaults to `false`
|
| Name | Type | Description |
|
||||||
- fetch_version: `boolean` - fetch the dart version - defaults to `true`
|
| ---------------------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- missing_command_text: `string` - text to display when the command is missing - defaults to empty
|
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` |
|
||||||
- display_mode: `string` - determines when the segment is displayed
|
| `fetch_version` | `boolean` | fetch the dart version - defaults to `true` |
|
||||||
- `always`: the segment is always displayed
|
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty |
|
||||||
- `files`: the segment is only displayed when `*.dart`, `pubspec.yaml`, `pubspec.yml`, `pubspec.lock` files or the `.dart_tool`
|
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.dart`, `pubspec.yaml`, `pubspec.yml`, `pubspec.lock` files or the `.dart_tool` folder are present (**default**)</li></ul> |
|
||||||
folder are present (default)
|
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||||
- version_url_template: `string` - a go [text/template][go-text-template] [template][templates] that creates
|
|
||||||
the URL of the version info / release notes
|
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -45,12 +43,14 @@ the URL of the version info / release notes
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Full`: `string` - the full version
|
| Name | Type | Description |
|
||||||
- `.Major`: `string` - major number
|
| -------- | -------- | -------------------------------------------------- |
|
||||||
- `.Minor`: `string` - minor number
|
| `.Full` | `string` | the full version |
|
||||||
- `.Patch`: `string` - patch number
|
| `.Major` | `string` | major number |
|
||||||
- `.URL`: `string` - URL of the version info / release notes
|
| `.Minor` | `string` | minor number |
|
||||||
- `.Error`: `string` - error encountered when fetching the version string
|
| `.Patch` | `string` | patch number |
|
||||||
|
| `.URL` | `string` | URL of the version info / release notes |
|
||||||
|
| `.Error` | `string` | error encountered when fetching the version string |
|
||||||
|
|
||||||
[go-text-template]: https://golang.org/pkg/text/template/
|
[go-text-template]: https://golang.org/pkg/text/template/
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -23,16 +23,13 @@ Display the currently active [.NET SDK][net-sdk-docs] version.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- home_enabled: `boolean` - display the segment in the HOME folder or not - defaults to `false`
|
| Name | Type | Description |
|
||||||
- fetch_version: `boolean` - fetch the active version or not; useful if all you need is an icon indicating `dotnet`
|
| ---------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
is present - defaults to `true`
|
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` |
|
||||||
- missing_command_text: `string` - text to display when the command is missing - defaults to empty
|
| `fetch_version` | `boolean` | fetch the active version or not; useful if all you need is an icon indicating `dotnet` is present - defaults to `true` |
|
||||||
- display_mode: `string` - determines when the segment is displayed
|
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty |
|
||||||
- `always`: the segment is always displayed
|
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.cs`, `*.vb`, `*.fs`, `*.fsx`, `*.sln`, `*.slnf`, `*.csproj`, `*.vbproj`, or `*.fsproj` files are present (**default**)</li></ul> |
|
||||||
- `files`: the segment is only displayed when `*.cs`, `*.vb`, `*.fs`, `*.fsx`, `*.sln`, `*.slnf`, `*.csproj`, `*.vbproj`,
|
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||||
or `*.fsproj` files are present (default)
|
|
||||||
- version_url_template: `string` - a go [text/template][go-text-template] [template][templates] that creates
|
|
||||||
the URL of the version info / release notes
|
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -46,14 +43,16 @@ the URL of the version info / release notes
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Full`: `string` - the full version
|
| Name | Type | Description |
|
||||||
- `.Major`: `string` - major number
|
| ---------------- | -------- | -------------------------------------------------- |
|
||||||
- `.Minor`: `string` - minor number
|
| `.Full` | `string` | the full version |
|
||||||
- `.Patch`: `string` - patch number
|
| `.Major` | `string` | major number |
|
||||||
- `.Prerelease`: `string` - prerelease info text
|
| `.Minor` | `string` | minor number |
|
||||||
- `.BuildMetadata`: `string` - build metadata
|
| `.Patch` | `string` | patch number |
|
||||||
- `.URL`: `string` - URL of the version info / release notes
|
| `.Prerelease` | `string` | prerelease info text |
|
||||||
- `.Error`: `string` - error encountered when fetching the version string
|
| `.BuildMetadata` | `string` | build metadata |
|
||||||
|
| `.URL` | `string` | URL of the version info / release notes |
|
||||||
|
| `.Error` | `string` | error encountered when fetching the version string |
|
||||||
|
|
||||||
[go-text-template]: https://golang.org/pkg/text/template/
|
[go-text-template]: https://golang.org/pkg/text/template/
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -31,24 +31,26 @@ The installation guide shows how to include this argument for PowerShell and Zsh
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- always_enabled: `boolean` - always show the duration - defaults to `false`
|
| Name | Type | Description |
|
||||||
- threshold: `number` - minimum duration (milliseconds) required to enable this segment - defaults to `500`
|
| ---------------- | --------- | ----------------------------------------------------------------------------------- |
|
||||||
- style: `enum` - one of the available format options - defaults to `austin`
|
| `always_enabled` | `boolean` | always show the duration - defaults to `false` |
|
||||||
|
| `threshold` | `number` | minimum duration (milliseconds) required to enable this segment - defaults to `500` |
|
||||||
|
| `style` | `enum` | one of the available format options - defaults to `austin` |
|
||||||
|
|
||||||
## Style
|
### Style
|
||||||
|
|
||||||
Style specifies the format in which the time will be displayed. The table below shows some example times in each option.
|
Style specifies the format in which the time will be displayed. The table below shows some example times in each option.
|
||||||
|
|
||||||
| format | 0.001s | 2.1s | 3m2.1s | 4h3m2.1s |
|
| format | 0.001s | 2.1s | 3m2.1s | 4h3m2.1s |
|
||||||
| ----------- | -------------- | -------------- | -------------- | ---------------- |
|
| ------------- | -------------- | -------------- | -------------- | ---------------- |
|
||||||
| austin | `1ms` | `2.1s` | `3m 2.1s` | `4h 3m 2.1s` |
|
| `austin` | `1ms` | `2.1s` | `3m 2.1s` | `4h 3m 2.1s` |
|
||||||
| roundrock | `1ms` | `2s 100ms` | `3m 2s 100ms` | `4h 3m 2s 100ms` |
|
| `roundrock` | `1ms` | `2s 100ms` | `3m 2s 100ms` | `4h 3m 2s 100ms` |
|
||||||
| dallas | `0.001` | `2.1` | `3:2.1` | `4:3:2.1` |
|
| `dallas` | `0.001` | `2.1` | `3:2.1` | `4:3:2.1` |
|
||||||
| galveston | `00:00:00` | `00:00:02` | `00:03:02` | `04:03:02` |
|
| `galveston` | `00:00:00` | `00:00:02` | `00:03:02` | `04:03:02` |
|
||||||
| galvestonms | `00:00:00:001` | `00:00:02:100` | `00:03:02:100` | `04:03:02:100` |
|
| `galvestonms` | `00:00:00:001` | `00:00:02:100` | `00:03:02:100` | `04:03:02:100` |
|
||||||
| houston | `00:00:00.001` | `00:00:02.1` | `00:03:02.1` | `04:03:02.1` |
|
| `houston` | `00:00:00.001` | `00:00:02.1` | `00:03:02.1` | `04:03:02.1` |
|
||||||
| amarillo | `0.001s` | `2.1s` | `182.1s` | `14,582.1s` |
|
| `amarillo` | `0.001s` | `2.1s` | `182.1s` | `14,582.1s` |
|
||||||
| round | `1ms` | `2s` | `3m 2s` | `4h 3m` |
|
| `round` | `1ms` | `2s` | `3m 2s` | `4h 3m` |
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -62,7 +64,9 @@ Style specifies the format in which the time will be displayed. The table below
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Ms`: `number` - the execution time in milliseconds
|
| Name | Type | Description |
|
||||||
- `.FormattedMs`: `string` - the formatted value based on the `style` above.
|
| -------------- | -------- | ---------------------------------------------- |
|
||||||
|
| `.Ms` | `number` | the execution time in milliseconds |
|
||||||
|
| `.FormattedMs` | `string` | the formatted value based on the `style` above |
|
||||||
|
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -16,10 +16,7 @@ Displays the last exit code or that the last command failed based on the configu
|
||||||
"style": "diamond",
|
"style": "diamond",
|
||||||
"foreground": "#ffffff",
|
"foreground": "#ffffff",
|
||||||
"background": "#00897b",
|
"background": "#00897b",
|
||||||
"background_templates": [
|
"background_templates": ["{{ if gt .Code 0 }}#e91e63{{ end }}"],
|
||||||
"{{ if gt .Code 0 }}#e91e63{{ end }}",
|
|
||||||
],
|
|
||||||
"leading_diamond": "",
|
|
||||||
"trailing_diamond": "\uE0B4",
|
"trailing_diamond": "\uE0B4",
|
||||||
"template": "<#193549>\uE0B0</> \uE23A ",
|
"template": "<#193549>\uE0B0</> \uE23A ",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -30,7 +27,9 @@ Displays the last exit code or that the last command failed based on the configu
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- always_enabled: `boolean` - always show the status - defaults to `false`
|
| Name | Type | Description |
|
||||||
|
| ---------------- | --------- | -------------------------------------------- |
|
||||||
|
| `always_enabled` | `boolean` | always show the status - defaults to `false` |
|
||||||
|
|
||||||
[colors]: /docs/configuration/colors
|
[colors]: /docs/configuration/colors
|
||||||
|
|
||||||
|
@ -46,7 +45,9 @@ Displays the last exit code or that the last command failed based on the configu
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Code`: `number` - the last known exit code
|
| Name | Type | Description |
|
||||||
- `.Meaning`: `string` - the textual meaning linked to exit code (if applicable, otherwise identical to `.Code`)
|
| ---------- | -------- | --------------------------------------------------------------------------------------- |
|
||||||
|
| `.Code` | `number` | the last known exit code |
|
||||||
|
| `.Meaning` | `string` | the textual meaning linked to exit code (if applicable, otherwise identical to `.Code`) |
|
||||||
|
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -23,15 +23,13 @@ Display the currently active flutter version.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- home_enabled: `boolean` - display the segment in the HOME folder or not - defaults to `false`
|
| Name | Type | Description |
|
||||||
- fetch_version: `boolean` - fetch the flutter version - defaults to `true`
|
| ---------------------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- missing_command_text: `string` - text to display when the command is missing - defaults to empty
|
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` |
|
||||||
- display_mode: `string` - determines when the segment is displayed
|
| `fetch_version` | `boolean` | fetch the flutter version - defaults to `true` |
|
||||||
- `always`: the segment is always displayed
|
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty |
|
||||||
- `files`: the segment is only displayed when `*.dart`, `pubspec.yaml`, `pubspec.yml`, `pubspec.lock` files or the `.dart_tool`
|
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.dart`, `pubspec.yaml`, `pubspec.yml`, `pubspec.lock` files or the `.dart_tool` folder are present (**default**)</li></ul> |
|
||||||
folder are present (default)
|
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||||
- version_url_template: `string` - a go [text/template][go-text-template] [template][templates] that creates
|
|
||||||
the URL of the version info / release notes
|
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -45,12 +43,14 @@ the URL of the version info / release notes
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Full`: `string` - the full version
|
| Name | Type | Description |
|
||||||
- `.Major`: `string` - major number
|
| -------- | -------- | -------------------------------------------------- |
|
||||||
- `.Minor`: `string` - minor number
|
| `.Full` | `string` | the full version |
|
||||||
- `.Patch`: `string` - patch number
|
| `.Major` | `string` | major number |
|
||||||
- `.URL`: `string` - URL of the version info / release notes
|
| `.Minor` | `string` | minor number |
|
||||||
- `.Error`: `string` - error encountered when fetching the version string
|
| `.Patch` | `string` | patch number |
|
||||||
|
| `.URL` | `string` | URL of the version info / release notes |
|
||||||
|
| `.Error` | `string` | error encountered when fetching the version string |
|
||||||
|
|
||||||
[go-text-template]: https://golang.org/pkg/text/template/
|
[go-text-template]: https://golang.org/pkg/text/template/
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -8,14 +8,6 @@ sidebar_label: Fossil
|
||||||
|
|
||||||
Display [fossil][fossil] information when in a fossil repository.
|
Display [fossil][fossil] information when in a fossil repository.
|
||||||
|
|
||||||
Local changes can also be displayed which uses the following syntax:
|
|
||||||
|
|
||||||
- `+` added
|
|
||||||
- `!` conflicted
|
|
||||||
- `-` deleted
|
|
||||||
- `~` modified
|
|
||||||
- `>` moved
|
|
||||||
|
|
||||||
## Sample Configuration
|
## Sample Configuration
|
||||||
|
|
||||||
```json
|
```json
|
||||||
|
@ -30,8 +22,9 @@ Local changes can also be displayed which uses the following syntax:
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- native_fallback: `boolean` - when set to `true` and `fossil.exe` is not available when inside a WSL2 shared Windows drive, we will fallback to the native fossil
|
| Name | Type | Description |
|
||||||
executable to fetch data. Not all information can be displayed in this case. Defaults to `false`.
|
| ----------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
|
| `native_fallback` | `boolean` | when set to `true` and `fossil.exe` is not available when inside a WSL2 shared Windows drive, we will fallback to the native fossil executable to fetch data. Not all information can be displayed in this case. Defaults to `false` |
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -45,19 +38,33 @@ executable to fetch data. Not all information can be displayed in this case. Def
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Status`: `FossilStatus` - changes in the worktree (see below)
|
| Name | Type | Description |
|
||||||
- `.Branch`: `string` - current branch
|
| --------- | -------------- | ----------------------------------- |
|
||||||
|
| `.Status` | `FossilStatus` | changes in the worktree (see below) |
|
||||||
|
| `.Branch` | `string` | current branch |
|
||||||
|
|
||||||
### FossilStatus
|
### FossilStatus
|
||||||
|
|
||||||
- `.Modified`: `int` - number of edited, updated and changed files
|
| Name | Type | Description |
|
||||||
- `.Deleted`: `int` - number of deleted files
|
| --------------- | --------- | -------------------------------------------- |
|
||||||
- `.Added`: `int` - number of added files
|
| `.Modified` | `int` | number of edited, updated and changed files |
|
||||||
- `.Moved`: `int` - number of renamed files
|
| `.Deleted` | `int` | number of deleted files |
|
||||||
- `.Conflicted`: `int` - number of conflicting files
|
| `.Added` | `int` | number of added files |
|
||||||
- `.Changed`: `boolean` - if the status contains changes or not
|
| `.Moved` | `int` | number of renamed files |
|
||||||
- `.HasConflicts`: `boolean` - if the status contains conflicts or not
|
| `.Conflicted` | `int` | number of conflicting files |
|
||||||
- `.String`: `string` - a string representation of the changes above
|
| `.Changed` | `boolean` | if the status contains changes or not |
|
||||||
|
| `.HasConflicts` | `boolean` | if the status contains conflicts or not |
|
||||||
|
| `.String` | `string` | a string representation of the changes above |
|
||||||
|
|
||||||
|
Local changes use the following syntax:
|
||||||
|
|
||||||
|
| Icon | Description |
|
||||||
|
| ---- | ----------- |
|
||||||
|
| `+` | added |
|
||||||
|
| `!` | conflicted |
|
||||||
|
| `-` | deleted |
|
||||||
|
| `~` | modified |
|
||||||
|
| `>` | moved |
|
||||||
|
|
||||||
[fossil]: https://fossil-scm.org
|
[fossil]: https://fossil-scm.org
|
||||||
[templates]: /docs/config-templates
|
[templates]: /docs/config-templates
|
||||||
|
|
|
@ -33,9 +33,11 @@ Display the currently active GCP project, region and account
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Project`: `string` - the currently active project
|
| Name | Type | Description |
|
||||||
- `.Account`: `string` - the currently active account
|
| ---------- | -------- | ------------------------------------------------------------------------ |
|
||||||
- `.Region`: `string` - default region for the active context
|
| `.Project` | `string` | the currently active project |
|
||||||
- `.Error`: `string` - contains any error messages generated when trying to load the GCP config
|
| `.Account` | `string` | the currently active account |
|
||||||
|
| `.Region` | `string` | default region for the active context |
|
||||||
|
| `.Error` | `string` | contains any error messages generated when trying to load the GCP config |
|
||||||
|
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -9,13 +9,6 @@ sidebar_label: Git
|
||||||
Display git information when in a git repository. Also works for subfolders. For maximum compatibility,
|
Display git information when in a git repository. Also works for subfolders. For maximum compatibility,
|
||||||
make sure your `git` executable is up-to-date (when branch or status information is incorrect for example).
|
make sure your `git` executable is up-to-date (when branch or status information is incorrect for example).
|
||||||
|
|
||||||
Local changes can also be displayed which uses the following syntax for both the working and staging area:
|
|
||||||
|
|
||||||
- `+` added
|
|
||||||
- `~` modified
|
|
||||||
- `-` deleted
|
|
||||||
- `?` untracked
|
|
||||||
|
|
||||||
:::tip
|
:::tip
|
||||||
PowerShell offers support for the [posh-git][poshgit] module for autocompletion, but it is disabled by default.
|
PowerShell offers support for the [posh-git][poshgit] module for autocompletion, but it is disabled by default.
|
||||||
To enable this, set `$env:POSH_GIT_ENABLED = $true` in your `$PROFILE`. This will also make use of the
|
To enable this, set `$env:POSH_GIT_ENABLED = $true` in your `$PROFILE`. This will also make use of the
|
||||||
|
@ -56,48 +49,51 @@ To enable this, set `$env:POSH_GIT_ENABLED = $true` in your `$PROFILE`. This wil
|
||||||
As doing multiple git calls can slow down the prompt experience, we do not fetch information by default.
|
As doing multiple git calls can slow down the prompt experience, we do not fetch information by default.
|
||||||
You can set the following properties to `true` to enable fetching additional information (and populate the template).
|
You can set the following properties to `true` to enable fetching additional information (and populate the template).
|
||||||
|
|
||||||
- fetch_status: `boolean` - fetch the local changes - defaults to `false`
|
| Name | Type | Description |
|
||||||
- fetch_stash_count: `boolean` fetch stash count - defaults to `false`
|
| ---------------------- | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- fetch_worktree_count: `boolean` fetch worktree count - defaults to `false`
|
| `fetch_status` | `boolean` | fetch the local changes - defaults to `false` |
|
||||||
- fetch_upstream_icon: `boolean` - fetch upstream icon - defaults to `false`
|
| `fetch_stash_count` | `boolean` | fetch stash count - defaults to `false` |
|
||||||
- untracked_modes: `map[string]string` - map of repo's where to override the default [untracked files mode][untracked] (`no` | `normal` | `all`). For example
|
| `fetch_worktree_count` | `boolean` | fetch worktree count - defaults to `false` |
|
||||||
`"untracked_modes": { "/Users/me/repos/repo1": "no" }` - defaults to `normal` for all repo's. If you want to override for all repo's, use
|
| `fetch_upstream_icon` | `boolean` | fetch upstream icon - defaults to `false` |
|
||||||
`*` to set the mode instead of the repo path.
|
| `untracked_modes` | `map[string]string` | map of repo's where to override the default [untracked files mode][untracked]:<ul><li>`no`</li><li>`normal`</li><li>`all`</li></ul>For example `"untracked_modes": { "/Users/me/repos/repo1": "no" }` - defaults to `normal` for all repo's. If you want to override for all repo's, use `*` to set the mode instead of the repo path |
|
||||||
- ignore_submodules: `map[string]string` - map of repo's where to change the [--ignore-submodules][submodules] flag (`none`, `untracked`, `dirty` or `all`).
|
| `ignore_submodules` | `map[string]string` | map of repo's where to change the [--ignore-submodules][submodules] flag (`none`, `untracked`, `dirty` or `all`). For example `"ignore_submodules": { "/Users/me/repos/repo1": "all" }`. If you want to override for all repo's, use `*` to set the mode instead of the repo path |
|
||||||
For example `"ignore_submodules": { "/Users/me/repos/repo1": "all" }`. If you want to override for all repo's, use `*` to set the mode
|
| `native_fallback` | `boolean` | when set to `true` and `git.exe` is not available when inside a WSL2 shared Windows drive, we will fallback to the native git executable to fetch data. Not all information can be displayed in this case. Defaults to `false` |
|
||||||
instead of the repo path.
|
|
||||||
- native_fallback: `boolean` - when set to `true` and `git.exe` is not available when inside a WSL2 shared Windows drive, we will fallback to the native git
|
|
||||||
executable to fetch data. Not all information can be displayed in this case. Defaults to `false`.
|
|
||||||
|
|
||||||
### Icons
|
### Icons
|
||||||
|
|
||||||
#### Branch
|
#### Branch
|
||||||
|
|
||||||
- branch_icon: `string` - the icon to use in front of the git branch name - defaults to `\uE0A0 `
|
| Name | Type | Description |
|
||||||
- branch_identical_icon: `string` - the icon to display when remote and local are identical - defaults to `\u2261`
|
| ----------------------- | -------- | -------------------------------------------------------------------------------------------- |
|
||||||
- branch_ahead_icon: `string` - the icon to display when the local branch is ahead of its remote - defaults to `\u2191`
|
| `branch_icon` | `string` | the icon to use in front of the git branch name - defaults to `\uE0A0 ` |
|
||||||
- branch_behind_icon: `string` - the icon to display when the local branch is behind its remote - defaults to `\u2193`
|
| `branch_identical_icon` | `string` | the icon to display when remote and local are identical - defaults to `\u2261` |
|
||||||
- branch_gone_icon: `string` - the icon to display when there's no remote branch - defaults to `\u2262`
|
| `branch_ahead_icon` | `string` | the icon to display when the local branch is ahead of its remote - defaults to `\u2191` |
|
||||||
- branch_max_length: `int` - the max length for the displayed branch name where `0` implies full length - defaults to `0`
|
| `branch_behind_icon` | `string` | the icon to display when the local branch is behind its remote - defaults to `\u2193` |
|
||||||
- truncate_symbol: `string` - the icon to display when a branch name is truncated - defaults to empty
|
| `branch_gone_icon` | `string` | the icon to display when there's no remote branch - defaults to `\u2262` |
|
||||||
|
| `branch_max_length` | `int` | the max length for the displayed branch name where `0` implies full length - defaults to `0` |
|
||||||
|
| `truncate_symbol` | `string` | the icon to display when a branch name is truncated - defaults to empty |
|
||||||
|
|
||||||
#### HEAD
|
#### HEAD
|
||||||
|
|
||||||
- commit_icon: `string` - icon/text to display before the commit context (detached HEAD) - defaults to `\uF417`
|
| Name | Type | Description |
|
||||||
- tag_icon: `string` - icon/text to display before the tag context - defaults to `\uF412`
|
| ------------------ | -------- | ---------------------------------------------------------------------------------------- |
|
||||||
- rebase_icon: `string` - icon/text to display before the context when in a rebase - defaults to `\uE728 `
|
| `commit_icon` | `string` | icon/text to display before the commit context (detached HEAD) - defaults to `\uF417` |
|
||||||
- cherry_pick_icon: `string` - icon/text to display before the context when doing a cherry-pick - defaults to `\uE29B `
|
| `tag_icon` | `string` | icon/text to display before the tag context - defaults to `\uF412` |
|
||||||
- revert_icon: `string` - icon/text to display before the context when doing a revert - defaults to `\uF0E2 `
|
| `rebase_icon` | `string` | icon/text to display before the context when in a rebase - defaults to `\uE728 ` |
|
||||||
- merge_icon: `string` icon/text to display before the merge context - defaults to `\uE727 `
|
| `cherry_pick_icon` | `string` | icon/text to display before the context when doing a cherry-pick - defaults to `\uE29B ` |
|
||||||
- no_commits_icon: `string` icon/text to display when there are no commits in the repo - defaults to `\uF594 `
|
| `revert_icon` | `string` | icon/text to display before the context when doing a revert - defaults to `\uF0E2 ` |
|
||||||
|
| `merge_icon` | `string` | icon/text to display before the merge context - defaults to `\uE727 ` |
|
||||||
|
| `no_commits_icon` | `string` | icon/text to display when there are no commits in the repo - defaults to `\uF594 ` |
|
||||||
|
|
||||||
#### Upstream
|
#### Upstream
|
||||||
|
|
||||||
- github_icon: `string` - icon/text to display when the upstream is Github - defaults to `\uF408 `
|
| Name | Type | Description |
|
||||||
- gitlab_icon: `string` - icon/text to display when the upstream is Gitlab - defaults to `\uF296 `
|
| ------------------- | -------- | ---------------------------------------------------------------------------------- |
|
||||||
- bitbucket_icon: `string` - icon/text to display when the upstream is Bitbucket - defaults to `\uF171 `
|
| `github_icon` | `string` | icon/text to display when the upstream is Github - defaults to `\uF408 ` |
|
||||||
- azure_devops_icon: `string` - icon/text to display when the upstream is Azure DevOps - defaults to `\uFD03 `
|
| `gitlab_icon` | `string` | icon/text to display when the upstream is Gitlab - defaults to `\uF296 ` |
|
||||||
- git_icon: `string` - icon/text to display when the upstream is not known/mapped - defaults to `\uE5FB `
|
| `bitbucket_icon` | `string` | icon/text to display when the upstream is Bitbucket - defaults to `\uF171 ` |
|
||||||
|
| `azure_devops_icon` | `string` | icon/text to display when the upstream is Azure DevOps - defaults to `\uFD03 ` |
|
||||||
|
| `git_icon` | `string` | icon/text to display when the upstream is not known/mapped - defaults to `\uE5FB ` |
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -111,32 +107,45 @@ executable to fetch data. Not all information can be displayed in this case. Def
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.RepoName`: `string` - the repo folder name
|
| Name | Type | Description |
|
||||||
- `.Working`: `GitStatus` - changes in the worktree (see below)
|
| ---------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- `.Staging`: `GitStatus` - staged changes in the work tree (see below)
|
| `.RepoName` | `string` | the repo folder name |
|
||||||
- `.HEAD`: `string` - the current HEAD context (branch/rebase/merge/...)
|
| `.Working` | `GitStatus` | changes in the worktree (see below) |
|
||||||
- `.Ref`: `string` - the current HEAD reference (branch/tag/...)
|
| `.Staging` | `GitStatus` | staged changes in the work tree (see below) |
|
||||||
- `.Behind`: `int` - commits behind of upstream
|
| `.HEAD` | `string` | the current HEAD context (branch/rebase/merge/...) |
|
||||||
- `.Ahead`: `int` - commits ahead of upstream
|
| `.Ref` | `string` | the current HEAD reference (branch/tag/...) |
|
||||||
- `.BranchStatus`: `string` - the current branch context (ahead/behind string representation)
|
| `.Behind` | `int` | commits behind of upstream |
|
||||||
- `.Upstream`: `string` - the upstream name (remote)
|
| `.Ahead` | `int` | commits ahead of upstream |
|
||||||
- `.UpstreamGone`: `boolean` - whether the upstream is gone (no remote)
|
| `.BranchStatus` | `string` | the current branch context (ahead/behind string representation) |
|
||||||
- `.UpstreamIcon`: `string` - the upstream icon (based on the icons above)
|
| `.Upstream` | `string` | the upstream name (remote) |
|
||||||
- `.UpstreamURL`: `string` - the upstream URL for use in [hyperlinks][hyperlinks] in templates: `{{ url .UpstreamIcon .UpstreamURL }}`
|
| `.UpstreamGone` | `boolean` | whether the upstream is gone (no remote) |
|
||||||
- `.StashCount`: `int` - the stash count
|
| `.UpstreamIcon` | `string` | the upstream icon (based on the icons above) |
|
||||||
- `.WorktreeCount`: `int` - the worktree count
|
| `.UpstreamURL` | `string` | the upstream URL for use in [hyperlinks][hyperlinks] in templates: `{{ url .UpstreamIcon .UpstreamURL }}` |
|
||||||
- `.IsWorkTree`: `boolean` - if in a worktree repo or not
|
| `.StashCount` | `int` | the stash count |
|
||||||
- `.Dir`: `string` - the repository's root directory
|
| `.WorktreeCount` | `int` | the worktree count |
|
||||||
- `.Kraken`: `string` - a link to the current HEAD in [GitKraken][kraken-ref] for use in [hyperlinks][hyperlinks] in templates `{{ url .HEAD .Kraken }}`
|
| `.IsWorkTree` | `boolean` | if in a worktree repo or not |
|
||||||
|
| `.Dir` | `string` | the repository's root directory |
|
||||||
|
| `.Kraken` | `string` | a link to the current HEAD in [GitKraken][kraken-ref] for use in [hyperlinks][hyperlinks] in templates `{{ url .HEAD .Kraken }}` |
|
||||||
|
|
||||||
### GitStatus
|
### GitStatus
|
||||||
|
|
||||||
- `.Unmerged`: `int` - number of unmerged changes
|
| Name | Type | Description |
|
||||||
- `.Deleted`: `int` - number of deleted changes
|
| ----------- | --------- | -------------------------------------------- |
|
||||||
- `.Added`: `int` - number of added changes
|
| `.Unmerged` | `int` | number of unmerged changes |
|
||||||
- `.Modified`: `int` - number of modified changes
|
| `.Deleted` | `int` | number of deleted changes |
|
||||||
- `.Changed`: `boolean` - if the status contains changes or not
|
| `.Added` | `int` | number of added changes |
|
||||||
- `.String`: `string` - a string representation of the changes above
|
| `.Modified` | `int` | number of modified changes |
|
||||||
|
| `.Changed` | `boolean` | if the status contains changes or not |
|
||||||
|
| `.String` | `string` | a string representation of the changes above |
|
||||||
|
|
||||||
|
Local changes use the following syntax:
|
||||||
|
|
||||||
|
| Icon | Description |
|
||||||
|
| ---- | ----------- |
|
||||||
|
| `+` | added |
|
||||||
|
| `~` | modified |
|
||||||
|
| `-` | deleted |
|
||||||
|
| `?` | untracked |
|
||||||
|
|
||||||
[poshgit]: /docs/segments/poshgit
|
[poshgit]: /docs/segments/poshgit
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -23,15 +23,14 @@ Display the currently active golang version.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- home_enabled: `boolean` - display the segment in the HOME folder or not - defaults to `false`
|
| Name | Type | Description |
|
||||||
- fetch_version: `boolean` - display the golang version - defaults to `true`
|
| ---------------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
- missing_command_text: `string` - text to display when the command is missing - defaults to empty
|
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` |
|
||||||
- display_mode: `string` - determines when the segment is displayed
|
| `fetch_version` | `boolean` | display the golang version - defaults to `true` |
|
||||||
- `always`: the segment is always displayed
|
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty |
|
||||||
- `files`: the segment is only displayed when `*.go` or `go.mod` files are present (default)
|
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.go` or `go.mod` files are present (**default**)</li></ul> |
|
||||||
- version_url_template: `string` - a go [text/template][go-text-template] [template][templates] that creates
|
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||||
the URL of the version info / release notes
|
| `parse_mod_file` | `boolean`: parse the go.mod file instead of calling `go version` |
|
||||||
- parse_mod_file: `boolean`: parse the go.mod file instead of calling `go version`
|
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -45,12 +44,14 @@ the URL of the version info / release notes
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Full`: `string` - the full version
|
| Name | Type | Description |
|
||||||
- `.Major`: `string` - major number
|
| -------- | -------- | -------------------------------------------------- |
|
||||||
- `.Minor`: `string` - minor number
|
| `.Full` | `string` | the full version |
|
||||||
- `.Patch`: `string` - patch number
|
| `.Major` | `string` | major number |
|
||||||
- `.URL`: `string` - URL of the version info / release notes
|
| `.Minor` | `string` | minor number |
|
||||||
- `.Error`: `string` - error encountered when fetching the version string
|
| `.Patch` | `string` | patch number |
|
||||||
|
| `.URL` | `string` | URL of the version info / release notes |
|
||||||
|
| `.Error` | `string` | error encountered when fetching the version string |
|
||||||
|
|
||||||
[go-text-template]: https://golang.org/pkg/text/template/
|
[go-text-template]: https://golang.org/pkg/text/template/
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -23,20 +23,14 @@ Display the currently active Glasgow Haskell Compiler (GHC) version.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- home_enabled: `boolean` - display the segment in the HOME folder or not - defaults to `false`
|
| Name | Type | Description |
|
||||||
- fetch_version: `boolean` - display the GHC version - defaults to `true`
|
| ---------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
- missing_command_text: `string` - text to display when the command is missing - defaults to empty
|
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` |
|
||||||
- display_mode: `string` - determines when the segment is displayed
|
| `fetch_version` | `boolean` | display the GHC version - defaults to `true` |
|
||||||
- `always`: the segment is always displayed
|
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty |
|
||||||
- `files`: the segment is only displayed when `*.hs`, `*.lhs`, `stack.yaml`, `package.yaml`, `*.cabal`,
|
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.hs`, `*.lhs`, `stack.yaml`, `package.yaml`, `*.cabal`, or `cabal.project` files are present (**default**)</li></ul> |
|
||||||
or `cabal.project` files are present (default)
|
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||||
- version_url_template: `string` - a go [text/template][go-text-template] [template][templates] that creates
|
| `stack_ghc_mode` | `string` | determines when to use `stack ghc` to retrieve the version information. Using `stack ghc` will decrease performance.<ul><li>`never`: never use `stack ghc` (**default**)</li><li>`package`: only use `stack ghc` when `stack.yaml` is in the root of the </li><li>`always`: always use `stack ghc`</li></ul> |
|
||||||
the URL of the version info / release notes
|
|
||||||
- stack_ghc_mode: `string` - determines when to use stack ghc to retrieve the version information.
|
|
||||||
Using stack ghc will decrease performance.
|
|
||||||
- `never`: never use stack ghc (default)
|
|
||||||
- `package`: only use stack ghc when `stack.yaml` is in the root of the package
|
|
||||||
- `always`: always use stack ghc
|
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -50,13 +44,15 @@ Using stack ghc will decrease performance.
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Full`: `string` - the full version
|
| Name | Type | Description |
|
||||||
- `.Major`: `string` - major number
|
| ----------- | --------- | -------------------------------------------------- |
|
||||||
- `.Minor`: `string` - minor number
|
| `.Full` | `string` | the full version |
|
||||||
- `.Patch`: `string` - patch number
|
| `.Major` | `string` | major number |
|
||||||
- `.URL`: `string` - URL of the version info / release notes
|
| `.Minor` | `string` | minor number |
|
||||||
- `.Error`: `string` - error encountered when fetching the version string
|
| `.Patch` | `string` | patch number |
|
||||||
- `.StackGhc`: `boolean` - `true` if stack ghc was used, otherwise `false`
|
| `.URL` | `string` | URL of the version info / release notes |
|
||||||
|
| `.Error` | `string` | error encountered when fetching the version string |
|
||||||
|
| `.StackGhc` | `boolean` | `true` if `stack ghc` was used, otherwise `false` |
|
||||||
|
|
||||||
[go-text-template]: https://golang.org/pkg/text/template/
|
[go-text-template]: https://golang.org/pkg/text/template/
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -16,7 +16,7 @@ sidebar_label: Ipify
|
||||||
"style": "diamond",
|
"style": "diamond",
|
||||||
"foreground": "#ffffff",
|
"foreground": "#ffffff",
|
||||||
"background": "#c386f1",
|
"background": "#c386f1",
|
||||||
"leading_diamond": "",
|
"leading_diamond": "\ue0b6",
|
||||||
"trailing_diamond": "\uE0B0",
|
"trailing_diamond": "\uE0B0",
|
||||||
"template": "{{ .IP }}",
|
"template": "{{ .IP }}",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -28,11 +28,11 @@ sidebar_label: Ipify
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- url: `string` - The Ipify URL, by default IPv4 is used, use `https://api64.ipify.org` for IPv6 - defaults to `https://api.ipify.org`
|
| Name | Type | Description |
|
||||||
- http_timeout: `int` - How long may the segment wait for a response of the ipify API? -
|
| --------------- | -------- | -------------------------------------------------------------------------------------------------------------------- |
|
||||||
defaults to 20ms
|
| `url` | `string` | The Ipify URL, by default IPv4 is used, use `https://api64.ipify.org` for IPv6 - defaults to `https://api.ipify.org` |
|
||||||
- cache_timeout: `int` in minutes - How long do you want your IP address cached? -
|
| `http_timeout` | `int` | How long may the segment wait for a response of the ipify API? - defaults to 20ms |
|
||||||
defaults to 10 min
|
| `cache_timeout` | `int` | in minutes - How long you want your IP address cached - defaults to 10 min |
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -46,7 +46,9 @@ sidebar_label: Ipify
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- .IP: `string` - Your external IP address
|
| Name | Type | Description |
|
||||||
|
| ---- | -------- | ------------------------ |
|
||||||
|
| .IP | `string` | Your external IP address |
|
||||||
|
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
[ipify]: https://www.ipify.org/
|
[ipify]: https://www.ipify.org/
|
||||||
|
|
|
@ -23,25 +23,12 @@ Display the currently active java version.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- home_enabled: `boolean` - display the segment in the HOME folder or not - defaults to `false`
|
| Name | Type | Description |
|
||||||
- fetch_version: `boolean` - display the java version - defaults to `true`
|
| ---------------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- missing_command_text: `string` - text to display when the java command is missing - defaults to empty
|
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` |
|
||||||
- display_mode: `string` - determines when the segment is displayed
|
| `fetch_version` | `boolean` | display the java version - defaults to `true` |
|
||||||
- `always`: the segment is always displayed
|
| `missing_command_text` | `string` | text to display when the java command is missing - defaults to empty |
|
||||||
- `files`: the segment is only displayed when one of the following files is present:
|
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when one of the following files is present<ul><li>`pom.xml`</li><li>`build.gradle.kts`</li><li>`build.sbt`</li><li>`.java-version`</li><li>`.deps.edn`</li><li>`project.clj`</li><li>`build.boot`</li><li>`*.java`</li><li>`*.class`</li><li>`*.gradle`</li><li>`*.jar`</li><li>`*.clj`</li><li>`*.cljc`</li></ul></li></ul> |
|
||||||
- `pom.xml`
|
|
||||||
- `build.gradle.kts`
|
|
||||||
- `build.sbt`
|
|
||||||
- `.java-version`
|
|
||||||
- `.deps.edn`
|
|
||||||
- `project.clj`
|
|
||||||
- `build.boot`
|
|
||||||
- `*.java`
|
|
||||||
- `*.class`
|
|
||||||
- `*.gradle`
|
|
||||||
- `*.jar`
|
|
||||||
- `*.clj`
|
|
||||||
- `*.cljc`
|
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -55,10 +42,12 @@ Display the currently active java version.
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Full`: `string` - the full version
|
| Name | Type | Description |
|
||||||
- `.Major`: `string` - major number
|
| -------- | -------- | -------------------------------------------------- |
|
||||||
- `.Minor`: `string` - minor number
|
| `.Full` | `string` | the full version |
|
||||||
- `.Patch`: `string` - patch number
|
| `.Major` | `string` | major number |
|
||||||
- `.Error`: `string` - error encountered when fetching the version string
|
| `.Minor` | `string` | minor number |
|
||||||
|
| `.Patch` | `string` | patch number |
|
||||||
|
| `.Error` | `string` | error encountered when fetching the version string |
|
||||||
|
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -23,14 +23,13 @@ Display the currently active julia version.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- home_enabled: `boolean` - display the segment in the HOME folder or not - defaults to `false`
|
| Name | Type | Description |
|
||||||
- fetch_version: `boolean` - display the julia version - defaults to `true`
|
| ---------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
- missing_command_text: `string` - text to display when the command is missing - defaults to empty
|
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` |
|
||||||
- display_mode: `string` - determines when the segment is displayed
|
| `fetch_version` | `boolean` | display the julia version - defaults to `true` |
|
||||||
- `always`: the segment is always displayed
|
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty |
|
||||||
- `files`: the segment is only displayed when `*.jl` files are present (default)
|
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.jl` files are present (**default**)</li></ul> |
|
||||||
- version_url_template: `string` - a go [text/template][go-text-template] [template][templates] that creates
|
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||||
the URL of the version info / release notes
|
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -44,12 +43,14 @@ the URL of the version info / release notes
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Full`: `string` - the full version
|
| Name | Type | Description |
|
||||||
- `.Major`: `string` - major number
|
| -------- | -------- | -------------------------------------------------- |
|
||||||
- `.Minor`: `string` - minor number
|
| `.Full` | `string` | the full version |
|
||||||
- `.Patch`: `string` - patch number
|
| `.Major` | `string` | major number |
|
||||||
- `.URL`: `string` - URL of the version info / release notes
|
| `.Minor` | `string` | minor number |
|
||||||
- `.Error`: `string` - error encountered when fetching the version string
|
| `.Patch` | `string` | patch number |
|
||||||
|
| `.URL` | `string` | URL of the version info / release notes |
|
||||||
|
| `.Error` | `string` | error encountered when fetching the version string |
|
||||||
|
|
||||||
[go-text-template]: https://golang.org/pkg/text/template/
|
[go-text-template]: https://golang.org/pkg/text/template/
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -23,14 +23,13 @@ Display the currently active [Kotlin][kotlin] version.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- home_enabled: `boolean` - display the segment in the HOME folder or not - defaults to `false`
|
| Name | Type | Description |
|
||||||
- fetch_version: `boolean` - display the kotlin version - defaults to `true`
|
| ---------------------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- missing_command_text: `string` - text to display when the command is missing - defaults to empty
|
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` |
|
||||||
- display_mode: `string` - determines when the segment is displayed
|
| `fetch_version` | `boolean` | display the kotlin version - defaults to `true` |
|
||||||
- `always`: the segment is always displayed
|
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty |
|
||||||
- `files`: the segment is only displayed when `*.kt`, `*.kts` and `*.ktm` files are present (default)
|
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.kt`, `*.kts` or `*.ktm` files are present (**default**) </li></ul> |
|
||||||
- version_url_template: `string` - a go [text/template][go-text-template] [template][templates] that creates
|
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||||
the URL of the version info / release notes
|
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -44,12 +43,14 @@ the URL of the version info / release notes
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Full`: `string` - the full version
|
| Name | Type | Description |
|
||||||
- `.Major`: `string` - major number
|
| -------- | -------- | -------------------------------------------------- |
|
||||||
- `.Minor`: `string` - minor number
|
| `.Full` | `string` | the full version |
|
||||||
- `.Patch`: `string` - patch number
|
| `.Major` | `string` | major number |
|
||||||
- `.URL`: `string` - URL of the version info / release notes
|
| `.Minor` | `string` | minor number |
|
||||||
- `.Error`: `string` - error encountered when fetching the version string
|
| `.Patch` | `string` | patch number |
|
||||||
|
| `.URL` | `string` | URL of the version info / release notes |
|
||||||
|
| `.Error` | `string` | error encountered when fetching the version string |
|
||||||
|
|
||||||
[go-text-template]: https://golang.org/pkg/text/template/
|
[go-text-template]: https://golang.org/pkg/text/template/
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -23,9 +23,10 @@ Display the currently active Kubernetes context name and namespace name.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- display_error: `boolean` - show the error context when failing to retrieve the kubectl information - defaults to `false`
|
| Name | Type | Description |
|
||||||
- parse_kubeconfig: `boolean` - parse kubeconfig files instead of calling out to kubectl to improve
|
| ------------------ | --------- | ----------------------------------------------------------------------------------------------------- |
|
||||||
performance - defaults to `false`
|
| `display_error` | `boolean` | show the error context when failing to retrieve the kubectl information - defaults to `false` |
|
||||||
|
| `parse_kubeconfig` | `boolean` | parse kubeconfig files instead of calling out to kubectl to improve performance - defaults to `false` |
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -39,10 +40,12 @@ performance - defaults to `false`
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Context`: `string` - the current kubectl context
|
| Name | Type | Description |
|
||||||
- `.Namespace`: `string` - the current kubectl context namespace
|
| ------------ | -------- | ------------------------------------- |
|
||||||
- `.User`: `string` - the current kubectl context user
|
| `.Context` | `string` | the current kubectl context |
|
||||||
- `.Cluster`: `string` - the current kubectl context cluster
|
| `.Namespace` | `string` | the current kubectl context namespace |
|
||||||
|
| `.User` | `string` | the current kubectl context user |
|
||||||
|
| `.Cluster` | `string` | the current kubectl context cluster |
|
||||||
|
|
||||||
## Tips
|
## Tips
|
||||||
|
|
||||||
|
|
|
@ -23,17 +23,14 @@ Display the currently active [Lua][lua] or [LuaJIT][luajit] version.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- home_enabled: `boolean` - display the segment in the HOME folder or not - defaults to `false`
|
| Name | Type | Description |
|
||||||
- fetch_version: `boolean` - display the lua version - defaults to `true`
|
| ---------------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- missing_command_text: `string` - text to display when the command is missing - defaults to empty
|
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` |
|
||||||
- display_mode: `string` - determines when the segment is displayed
|
| `fetch_version` | `boolean` | display the lua version - defaults to `true` |
|
||||||
- `always`: the segment is always displayed
|
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty |
|
||||||
- `files`: the segment is only displayed when `*.lua`, `*.rockspec` files or the `lua` folder are present (default)
|
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.lua`, `*.rockspec` files or the `lua` folder are present (**default**)</li></ul> |
|
||||||
- version_url_template: `string` - a go [text/template][go-text-template] [template][templates] that creates
|
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||||
the URL of the version info / release notes
|
| `preferred_executable` | `string` | the preferred executable to use when fetching the version<ul><li>`lua`: the Lua executable (**default**)</li><li>`luajit`: the LuaJIT executable</li></ul> |
|
||||||
- preferred_executable: `string` - the preferred executable to use when fetching the version
|
|
||||||
- `lua`: the Lua executable (default)
|
|
||||||
- `luajit`: the LuaJIT executable
|
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -47,13 +44,15 @@ the URL of the version info / release notes
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Full`: `string` - the full version
|
| Name | Type | Description |
|
||||||
- `.Major`: `string` - major number
|
| ------------- | -------- | -------------------------------------------------- |
|
||||||
- `.Minor`: `string` - minor number
|
| `.Full` | `string` | the full version |
|
||||||
- `.Patch`: `string` - patch number
|
| `.Major` | `string` | major number |
|
||||||
- `.URL`: `string` - URL of the version info / release notes
|
| `.Minor` | `string` | minor number |
|
||||||
- `.Error`: `string` - error encountered when fetching the version string
|
| `.Patch` | `string` | patch number |
|
||||||
- `.Executable`: `string` - the executable used to fetch the version
|
| `.URL` | `string` | URL of the version info / release notes |
|
||||||
|
| `.Error` | `string` | error encountered when fetching the version string |
|
||||||
|
| `.Executable` | `string` | the executable used to fetch the version |
|
||||||
|
|
||||||
[go-text-template]: https://golang.org/pkg/text/template/
|
[go-text-template]: https://golang.org/pkg/text/template/
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -37,13 +37,15 @@ The Nerdbank.GitVersioning CLI can be a bit slow causing the prompt to feel slow
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Version`: `string` - the current version
|
| Name | Type | Description |
|
||||||
- `.AssemblyVersion`: `string` - the current assembly version
|
| ------------------------------- | -------- | ------------------------------------------ |
|
||||||
- `.AssemblyInformationalVersion`: `string` - the current assembly informational version
|
| `.Version` | `string` | the current version |
|
||||||
- `.NuGetPackageVersion`: `string` - the current nuget package version
|
| `.AssemblyVersion` | `string` | the current assembly version |
|
||||||
- `.ChocolateyPackageVersion`: `string` - the current chocolatey package version
|
| `.AssemblyInformationalVersion` | `string` | the current assembly informational version |
|
||||||
- `.NpmPackageVersion`: `string` - the current npm package version
|
| `.NuGetPackageVersion` | `string` | the current nuget package version |
|
||||||
- `.SimpleVersion`: `string` - the current simple version
|
| `.ChocolateyPackageVersion` | `string` | the current chocolatey package version |
|
||||||
|
| `.NpmPackageVersion` | `string` | the current npm package version |
|
||||||
|
| `.SimpleVersion` | `string` | the current simple version |
|
||||||
|
|
||||||
[nbgv]: https://github.com/dotnet/Nerdbank.GitVersioning
|
[nbgv]: https://github.com/dotnet/Nerdbank.GitVersioning
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -40,7 +40,7 @@ if that color is visible against any of your backgrounds.
|
||||||
"#000000"
|
"#000000"
|
||||||
],
|
],
|
||||||
|
|
||||||
"leading_diamond": "",
|
"leading_diamond": "\ue0b6",
|
||||||
"trailing_diamond": "\uE0B0",
|
"trailing_diamond": "\uE0B0",
|
||||||
"template": "\ue2a1 {{ .Sgv }}{{ .TrendIcon }}",
|
"template": "\ue2a1 {{ .Sgv }}{{ .TrendIcon }}",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -58,26 +58,27 @@ Or display in mmol/l (instead of the default mg/dl) with the following template:
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- url: `string` - Your Nightscout URL, including the full path to entries.json
|
| Name | Type | Description |
|
||||||
AND count=1 AND token. Example above. You'll know this works if you can curl
|
| --------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
it yourself and get a single value. - defaults to ``
|
| `url` | `string` | Your Nightscout URL, including the full path to entries.json AND count=1 AND token. Example above. You'll know this works if you can curl it yourself and get a single value. - defaults to `` |
|
||||||
- http_timeout: `int` - How long do you want to wait before you want to see
|
| `http_timeout` | `int` | How long do you want to wait before you want to see your prompt more than your sugar? I figure a half second is a good default - defaults to 500ms |
|
||||||
your prompt more than your sugar? I figure a half second is a good default -
|
| `cache_timeout` | `int` | in minutes - How long do you want your numbers cached? - defaults to 5 min |
|
||||||
defaults to 500ms
|
|
||||||
- NSCacheTimeout: `int` in minutes - How long do you want your numbers cached? -
|
|
||||||
defaults to 5 min
|
|
||||||
|
|
||||||
- NOTE: You can change the icons for trend, put the trend elsewhere, add text,
|
:::info
|
||||||
however you like!
|
You can change the icons for trend, put the trend elsewhere, add text, however you like!
|
||||||
Make sure your NerdFont has the glyph you want or search for one at
|
Make sure your NerdFont has the glyph you want or [search for one][nf-search].
|
||||||
nerdfonts.com
|
|
||||||
- DoubleUpIcon - defaults to ↑↑
|
| Icon | Description |
|
||||||
- SingleUpIcon - defaults to ↑
|
| ------------------- | ---------------- |
|
||||||
- FortyFiveUpIcon - defaults to ↗
|
| `DoubleUpIcon` | defaults to `↑↑` |
|
||||||
- FlatIcon - defaults to →
|
| `SingleUpIcon` | defaults to `↑` |
|
||||||
- FortyFiveDownIcon - defaults to ↘
|
| `FortyFiveUpIcon` | defaults to `↗` |
|
||||||
- SingleDownIcon - defaults to ↓
|
| `FlatIcon` | defaults to `→` |
|
||||||
- DoubleDownIcon - defaults to ↓↓
|
| `FortyFiveDownIcon` | defaults to `↘` |
|
||||||
|
| `SingleDownIcon` | defaults to `↓` |
|
||||||
|
| `DoubleDownIcon` | defaults to `↓↓` |
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -91,18 +92,20 @@ Or display in mmol/l (instead of the default mg/dl) with the following template:
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- .ID: `string` - The internal ID of the object
|
| Name | Type | Description |
|
||||||
- .Sgv: `int` - Your Serum Glucose Value (your sugar)
|
| ----------- | -------- | ---------------------------------------------------------------------------------------------------------- |
|
||||||
- .Date: `int` - The unix timestamp of the entry
|
| .ID | `string` | The internal ID of the object |
|
||||||
- .DateString: `time` - The timestamp of the entry
|
| .Sgv | `int` | Your Serum Glucose Value (your sugar) |
|
||||||
- .Trend: `int` - The trend of the entry
|
| .Date | `int` | The unix timestamp of the entry |
|
||||||
- .Device: `string` - The device linked to the entry
|
| .DateString | `time` | The timestamp of the entry |
|
||||||
- .Type: `string` - The type of the entry
|
| .Trend | `int` | The trend of the entry |
|
||||||
- .UtcOffset: `int` - The UTC offset
|
| .Device | `string` | The device linked to the entry |
|
||||||
- .SysTime: `time` - The time on the system
|
| .Type | `string` | The type of the entry |
|
||||||
- .Mills: `int` - The amount of mills
|
| .UtcOffset | `int` | The UTC offset |
|
||||||
- .TrendIcon: `string` - By default, this will be something like ↑↑ or ↘ etc but you can
|
| .SysTime | `time` | The time on the system |
|
||||||
override them with any glpyh as seen above
|
| .Mills | `int` | The amount of mills |
|
||||||
|
| .TrendIcon | `string` | By default, this will be something like ↑↑ or ↘ etc but you can override them with any glpyh as seen above |
|
||||||
|
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
[nightscout]: http://www.nightscout.info/
|
[nightscout]: http://www.nightscout.info/
|
||||||
|
[nf-search]: https://www.nerdfonts.com/cheat-sheet
|
||||||
|
|
|
@ -23,18 +23,16 @@ Display the currently active [Node.js][node-js] version.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- home_enabled: `boolean` - display the segment in the HOME folder or not - defaults to `false`
|
| Name | Type | Description |
|
||||||
- fetch_version: `boolean` - display the Node.js version - defaults to `true`
|
| ----------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- missing_command_text: `string` - text to display when the command is missing - defaults to empty
|
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` |
|
||||||
- display_mode: `string` - determines when the segment is displayed
|
| `fetch_version` | `boolean` | display the Node.js version - defaults to `true` |
|
||||||
- `always`: The segment is always displayed
|
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty |
|
||||||
- `files`: The segment is only displayed when `*.js`, `*.ts`, `package.json`, `.nvmrc`, `pnpm-workspace.yaml`,
|
| `display_mode` | `string` | <ul><li>`always`: The segment is always displayed</li><li>`files`: The segment is only displayed when one of the following files is present (**default**):<ul><li>`*.js`</li><li>`*.ts`</li><li>`package.json`</li><li>`.nvmrc`</li><li>`pnpm-workspace.yaml`</li><li>`.pnpmfile.cjs`</li><li>`.npmrc`</li><li>`.vue`</li></ul></li></ul> |
|
||||||
`.pnpmfile.cjs`, `.npmrc` or `.vue` files are present (default)
|
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||||
- version_url_template: `string` - a go [text/template][go-text-template] [template][templates] that creates
|
| `fetch_package_manager` | `boolean` | define if the current project uses Yarn or NPM - defaults to `false` |
|
||||||
the URL of the version info / release notes
|
| `yarn_icon` | `string` | the icon/text to display when using Yarn - defaults to ` \uF61A` |
|
||||||
- fetch_package_manager: `boolean` - define if the current project uses Yarn or NPM - defaults to `false`
|
| `npm_icon` | `string` | the icon/text to display when using NPM - defaults to ` \uE71E` |
|
||||||
- yarn_icon: `string` - the icon/text to display when using Yarn - defaults to ` \uF61A`
|
|
||||||
- npm_icon: `string` - the icon/text to display when using NPM - defaults to ` \uE71E`
|
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -48,14 +46,16 @@ the URL of the version info / release notes
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Full`: `string` - the full version
|
| Name | Type | Description |
|
||||||
- `.Major`: `string` - major number
|
| --------------------- | --------- | ------------------------------------------------------------------- |
|
||||||
- `.Minor`: `string` - minor number
|
| `.Full` | `string` | the full version |
|
||||||
- `.Patch`: `string` - patch number
|
| `.Major` | `string` | major number |
|
||||||
- `.URL`: `string` - URL of the version info / release notes
|
| `.Minor` | `string` | minor number |
|
||||||
- `.Error`: `string` - error encountered when fetching the version string
|
| `.Patch` | `string` | patch number |
|
||||||
- `.PackageManagerIcon`: `string` - the Yarn or NPM icon when setting `fetch_package_manager` to `true`
|
| `.URL` | `string` | URL of the version info / release notes |
|
||||||
- `.Mismatch`: `boolean` - if the version in `.nvmrc` matches with `.Full`
|
| `.Error` | `string` | error encountered when fetching the version string |
|
||||||
|
| `.PackageManagerIcon` | `string` | the Yarn or NPM icon when setting `fetch_package_manager` to `true` |
|
||||||
|
| `.Mismatch` | `boolean` | if the version in `.nvmrc` matches with `.Full` |
|
||||||
|
|
||||||
[go-text-template]: https://golang.org/pkg/text/template/
|
[go-text-template]: https://golang.org/pkg/text/template/
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -23,14 +23,13 @@ Display the currently active [npm][npm-docs] version.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- home_enabled: `boolean` - display the segment in the HOME folder or not - defaults to `false`
|
| Name | Type | Description |
|
||||||
- missing_command_text: `string` - text to display when the command is missing - defaults to empty
|
| ---------------------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- fetch_version: `boolean` - fetch the NPM version - defaults to `true`
|
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` |
|
||||||
- display_mode: `string` - determines when the segment is displayed
|
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty |
|
||||||
- `always`: the segment is always displayed
|
| `fetch_version` | `boolean` | fetch the NPM version - defaults to `true` |
|
||||||
- `files`: the segment is only displayed when `package.json` or `package-lock.json` file are present
|
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `package.json` or `package-lock.json` file are present (**default**)</li></ul> |
|
||||||
- version_url_template: `string` - a go [text/template][go-text-template] [template][templates] that creates
|
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||||
the URL of the version info / release notes
|
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -44,12 +43,14 @@ the URL of the version info / release notes
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Full`: `string` - the full version
|
| Name | Type | Description |
|
||||||
- `.Major`: `string` - major number
|
| -------- | -------- | -------------------------------------------------- |
|
||||||
- `.Minor`: `string` - minor number
|
| `.Full` | `string` | the full version |
|
||||||
- `.Patch`: `string` - patch number
|
| `.Major` | `string` | major number |
|
||||||
- `.URL`: `string` - URL of the version info / release notes
|
| `.Minor` | `string` | minor number |
|
||||||
- `.Error`: `string` - error encountered when fetching the version string
|
| `.Patch` | `string` | patch number |
|
||||||
|
| `.URL` | `string` | URL of the version info / release notes |
|
||||||
|
| `.Error` | `string` | error encountered when fetching the version string |
|
||||||
|
|
||||||
[go-text-template]: https://golang.org/pkg/text/template/
|
[go-text-template]: https://golang.org/pkg/text/template/
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -23,13 +23,12 @@ Display the currently active [Nx][nx-docs] version.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- home_enabled: `boolean` - display the segment in the HOME folder or not - defaults to `false`
|
| Name | Type | Description |
|
||||||
- fetch_version: `boolean` - fetch the active version or not; useful if all you need is an icon indicating `ng`
|
| ---------------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- display_mode: `string` - determines when the segment is displayed
|
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` |
|
||||||
- `always`: the segment is always displayed
|
| `fetch_version` | `boolean` | fetch the active version or not; useful if all you need is an icon indicating `ng` |
|
||||||
- `files`: the segment is only displayed when a `workspace.json` or `nx.json` file is present (default)
|
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when a `workspace.json` or `nx.json` file is present (**default**)</li></ul> |
|
||||||
- version_url_template: `string` - a go [text/template][go-text-template] [template][templates] that creates
|
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||||
the URL of the version info / release notes
|
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -43,12 +42,14 @@ Display the currently active [Nx][nx-docs] version.
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Full`: `string` - the full version
|
| Name | Type | Description |
|
||||||
- `.Major`: `string` - major number
|
| -------- | -------- | -------------------------------------------------- |
|
||||||
- `.Minor`: `string` - minor number
|
| `.Full` | `string` | the full version |
|
||||||
- `.Patch`: `string` - patch number
|
| `.Major` | `string` | major number |
|
||||||
- `.URL`: `string` - URL of the version info / release notes
|
| `.Minor` | `string` | minor number |
|
||||||
- `.Error`: `string` - error encountered when fetching the version string
|
| `.Patch` | `string` | patch number |
|
||||||
|
| `.URL` | `string` | URL of the version info / release notes |
|
||||||
|
| `.Error` | `string` | error encountered when fetching the version string |
|
||||||
|
|
||||||
[go-text-template]: https://golang.org/pkg/text/template/
|
[go-text-template]: https://golang.org/pkg/text/template/
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -25,29 +25,31 @@ Display OS specific info - defaults to Icon.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- macos: `string` - the string to use for macOS - defaults to macOS icon - defaults to `\uF179`
|
| Name | Type | Description |
|
||||||
- linux: `string` - the icon to use for Linux - defaults to Linux icon - defaults to `\uF17C`
|
| --------------------- | --------- | ----------------------------------------------------------------------------------- |
|
||||||
- windows: `string` - the icon to use for Windows - defaults to Windows icon - defaults to `\uE62A`
|
| `macos` | `string` | the string to use for macOS - defaults to macOS icon - defaults to `\uF179` |
|
||||||
- display_distro_name: `boolean` - display the distro name or icon (for WSL and Linux) - defaults to `false`
|
| `linux` | `string` | the icon to use for Linux - defaults to Linux icon - defaults to `\uF17C` |
|
||||||
- alpine: `string` - the icon to use for Alpine - defaults to Alpine icon - defaults to `\uF300`
|
| `windows` | `string` | the icon to use for Windows - defaults to Windows icon - defaults to `\uE62A` |
|
||||||
- aosc: `string` - the icon to use for Aosc - defaults to Aosc icon - defaults to `\uF301`
|
| `display_distro_name` | `boolean` | display the distro name or icon (for WSL and Linux) - defaults to `false` |
|
||||||
- arch: `string` - the icon to use for Arch - defaults to Arch icon - defaults to `\uF303`
|
| `alpine` | `string` | the icon to use for Alpine - defaults to Alpine icon - defaults to `\uF300` |
|
||||||
- centos: `string` - the icon to use for Centos - defaults to Centos icon - defaults to `\uF304`
|
| `aosc` | `string` | the icon to use for Aosc - defaults to Aosc icon - defaults to `\uF301` |
|
||||||
- coreos: `string` - the icon to use for Coreos - defaults to Coreos icon - defaults to `\uF305`
|
| `arch` | `string` | the icon to use for Arch - defaults to Arch icon - defaults to `\uF303` |
|
||||||
- debian: `string` - the icon to use for Debian - defaults to Debian icon - defaults to `\uF306`
|
| `centos` | `string` | the icon to use for Centos - defaults to Centos icon - defaults to `\uF304` |
|
||||||
- devuan: `string` - the icon to use for Devuan - defaults to Devuan icon - defaults to `\uF307`
|
| `coreos` | `string` | the icon to use for Coreos - defaults to Coreos icon - defaults to `\uF305` |
|
||||||
- raspbian: `string` - the icon to use for Raspbian - defaults to Raspbian icon - defaults to `\uF315`
|
| `debian` | `string` | the icon to use for Debian - defaults to Debian icon - defaults to `\uF306` |
|
||||||
- elementary: `string` - the icon to use for Elementary - defaults to Elementary icon - defaults to `\uF309`
|
| `devuan` | `string` | the icon to use for Devuan - defaults to Devuan icon - defaults to `\uF307` |
|
||||||
- fedora: `string` - the icon to use for Fedora - defaults to Fedora icon - defaults to `\uF30a`
|
| `raspbian` | `string` | the icon to use for Raspbian - defaults to Raspbian icon - defaults to `\uF315` |
|
||||||
- gentoo: `string` - the icon to use for Gentoo - defaults to Gentoo icon - defaults to `\uF30d`
|
| `elementary` | `string` | the icon to use for Elementary - defaults to Elementary icon - defaults to `\uF309` |
|
||||||
- mageia: `string` - the icon to use for Mageia - defaults to Mageia icon - defaults to `\uF310`
|
| `fedora` | `string` | the icon to use for Fedora - defaults to Fedora icon - defaults to `\uF30a` |
|
||||||
- manjaro: `string` - the icon to use for Manjaro - defaults to Manjaro icon - defaults to `\uF312`
|
| `gentoo` | `string` | the icon to use for Gentoo - defaults to Gentoo icon - defaults to `\uF30d` |
|
||||||
- mint: `string` - the icon to use for Mint - defaults to Mint icon - defaults to `\uF30e`
|
| `mageia` | `string` | the icon to use for Mageia - defaults to Mageia icon - defaults to `\uF310` |
|
||||||
- nixos: `string` - the icon to use for Nixos - defaults to Nixos icon - defaults to `\uF313`
|
| `manjaro` | `string` | the icon to use for Manjaro - defaults to Manjaro icon - defaults to `\uF312` |
|
||||||
- opensuse: `string` - the icon to use for Opensuse - defaults to Opensuse icon - defaults to `\uF314`
|
| `mint` | `string` | the icon to use for Mint - defaults to Mint icon - defaults to `\uF30e` |
|
||||||
- sabayon: `string` - the icon to use for Sabayon - defaults to Sabayon icon - defaults to `\uF317`
|
| `nixos` | `string` | the icon to use for Nixos - defaults to Nixos icon - defaults to `\uF313` |
|
||||||
- slackware: `string` - the icon to use for Slackware - defaults to Slackware icon - defaults to `\uF319`
|
| `opensuse` | `string` | the icon to use for Opensuse - defaults to Opensuse icon - defaults to `\uF314` |
|
||||||
- ubuntu: `string` - the icon to use for Ubuntu - defaults to Ubuntu icon - defaults to `\uF31b`
|
| `sabayon` | `string` | the icon to use for Sabayon - defaults to Sabayon icon - defaults to `\uF317` |
|
||||||
|
| `slackware` | `string` | the icon to use for Slackware - defaults to Slackware icon - defaults to `\uF319` |
|
||||||
|
| `ubuntu` | `string` | the icon to use for Ubuntu - defaults to Ubuntu icon - defaults to `\uF31b` |
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -61,6 +63,8 @@ Display OS specific info - defaults to Icon.
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Icon`: `string` - the OS icon
|
| Name | Type | Description |
|
||||||
|
| ------- | -------- | ----------- |
|
||||||
|
| `.Icon` | `string` | the OS icon |
|
||||||
|
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -10,7 +10,7 @@ Shows the current weather of a given location with [Open Weather Map][owm].
|
||||||
|
|
||||||
:::caution
|
:::caution
|
||||||
You **must** request an API key at the [Open Weather Map][owm-price] website.
|
You **must** request an API key at the [Open Weather Map][owm-price] website.
|
||||||
The free tier for *Current weather and forecasts collection* is sufficient.
|
The free tier for _Current weather and forecasts collection_ is sufficient.
|
||||||
:::
|
:::
|
||||||
|
|
||||||
## Sample Configuration
|
## Sample Configuration
|
||||||
|
@ -35,16 +35,14 @@ The free tier for *Current weather and forecasts collection* is sufficient.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- apikey: `string` - Your API key from [Open Weather Map][owm]
|
| Name | Type | Description |
|
||||||
- location: `string` - The requested location.
|
| --------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
Formatted as <City,STATE,COUNTRY_CODE>. City name, state code and country code divided by comma.
|
| `apikey` | `string` | Your API key from [Open Weather Map][owm] |
|
||||||
Please, refer to ISO 3166 for the state codes or country codes - defaults to `DE BILT,NL`
|
| `location` | `string` | The requested location. 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 - defaults to `DE BILT,NL` |
|
||||||
- units: `string` - Units of measurement.
|
| `units` | `string` | Units of measurement. Available values are standard (kelvin), metric (celsius), and imperial (fahrenheit) - defaults to `standard` |
|
||||||
Available values are standard (kelvin), metric (celsius), and imperial (fahrenheit) - defaults to `standard`
|
| `http_timeout` | `int` | The default timeout for http request is 20ms. |
|
||||||
- http_timeout: `int` - The default timeout for http request is 20ms.
|
| `cache_timeout` | `int` | The default timeout for request caching is 10m. A value of 0 disables the cache. |
|
||||||
- cache_timeout: `int` - The default timeout for request caching is 10m. A value of 0 disables the cache.
|
| `template` | `string` | A go [text/template][go-text-template] template extended with [sprig][sprig] utilizing the properties below - defaults to `{{.Weather}} ({{.Temperature}}{{.UnitIcon}})` |
|
||||||
- template: `string` - A go [text/template][go-text-template] template extended with [sprig][sprig] utilizing the
|
|
||||||
properties below - defaults to `{{.Weather}} ({{.Temperature}}{{.UnitIcon}})`
|
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -58,10 +56,12 @@ properties below - defaults to `{{.Weather}} ({{.Temperature}}{{.UnitIcon}})`
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Weather`: `string` - the current weather icon
|
| Name | Type | Description |
|
||||||
- `.Temperature`: `int` - the current temperature
|
| -------------- | -------- | ---------------------------------------------- |
|
||||||
- `.UnitIcon`: `string` - the current unit icon(based on units property)
|
| `.Weather` | `string` | the current weather icon |
|
||||||
- `.URL`: `string` - the url of the current api call
|
| `.Temperature` | `int` | the current temperature |
|
||||||
|
| `.UnitIcon` | `string` | the current unit icon(based on units property) |
|
||||||
|
| `.URL` | `string` | the url of the current api call |
|
||||||
|
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
[owm]: https://openweathermap.org
|
[owm]: https://openweathermap.org
|
||||||
|
|
|
@ -28,17 +28,17 @@ Display the current path.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- folder_separator_icon: `string` - the symbol to use as a separator between folders - defaults to platform path separator
|
| Name | Type | Description |
|
||||||
- folder_separator_template: `string` - the [template][templates] to use as a separator between folders - defaults to ``
|
| --------------------------- | --------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- home_icon: `string` - the icon to display when at `$HOME` - defaults to `~`
|
| `folder_separator_icon` | `string` | the symbol to use as a separator between folders - defaults to platform path separator |
|
||||||
- folder_icon: `string` - the icon to use as a folder indication - defaults to `..`
|
| `folder_separator_template` | `string` | the [template][templates] to use as a separator between folders - defaults to `` |
|
||||||
- windows_registry_icon: `string` - the icon to display when in the Windows registry - defaults to `\uE0B1`
|
| `home_icon` | `string` | the icon to display when at `$HOME`, defaults to `~` |
|
||||||
- style: `enum` - how to display the current path
|
| `folder_icon` | `string` | the icon to use as a folder indication - defaults to `..` |
|
||||||
- mixed_threshold: `number` - the maximum length of a path segment that will be displayed when using `Mixed` -
|
| `windows_registry_icon` | `string` | the icon to display when in the Windows registry - defaults to `\uE0B1` |
|
||||||
defaults to `4`
|
| `style` | `enum` | how to display the current path |
|
||||||
- max_depth: `number` - maximum path depth to display before shortening when using `agnoster_short` - defaults to `1`
|
| `mixed_threshold` | `number` | the maximum length of a path segment that will be displayed when using `Mixed` - defaults to `4` |
|
||||||
- hide_root_location: `boolean` - hides the root location if it doesn't fit in the last `max_depth` folders, when using
|
| `max_depth` | `number` | maximum path depth to display before shortening when using `agnoster_short`, defaults to `1` |
|
||||||
`agnoster_short` - defaults to `false`
|
| `hide_root_location` | `boolean` | hides the root location if it doesn't fit in the last `max_depth` folders, when using `agnoster_short` - defaults to `false` |
|
||||||
|
|
||||||
## Mapped Locations
|
## Mapped Locations
|
||||||
|
|
||||||
|
@ -46,9 +46,11 @@ Allows you to override a location with an icon. It validates if the current path
|
||||||
it with the icon if there's a match. To avoid issues with nested overrides, Oh My Posh will sort the list of mapped
|
it with the icon if there's a match. To avoid issues with nested overrides, Oh My Posh will sort the list of mapped
|
||||||
locations before doing a replacement.
|
locations before doing a replacement.
|
||||||
|
|
||||||
- mapped_locations_enabled: `boolean` - replace known locations in the path with the replacements before applying the
|
| Name | Type | Description |
|
||||||
style - defaults to `true`
|
| -------------------------- | --------- | -------------------------------------------------------------------------------------------------------- |
|
||||||
- mapped_locations: `object` - custom glyph/text for specific paths. Works regardless of the `mapped_locations_enabled`
|
| `mapped_locations_enabled` | `boolean` | replace known locations in the path with the replacements before applying the style - defaults to `true` |
|
||||||
|
| `mapped_locations` | `object` | custom glyph/text for specific paths. Works regardless of the `mapped_locations_enabled` |
|
||||||
|
|
||||||
setting.
|
setting.
|
||||||
|
|
||||||
For example, to swap out `C:\Users\Leet\GitHub` with a GitHub icon, you can do the following:
|
For example, to swap out `C:\Users\Leet\GitHub` with a GitHub icon, you can do the following:
|
||||||
|
@ -73,15 +75,15 @@ This means that for user Bill, who has a user account `Bill` on Windows and `bil
|
||||||
|
|
||||||
Style sets the way the path is displayed. Based on previous experience and popular themes, there are 5 flavors.
|
Style sets the way the path is displayed. Based on previous experience and popular themes, there are 5 flavors.
|
||||||
|
|
||||||
- agnoster
|
- `agnoster`
|
||||||
- agnoster_full
|
- `agnoster_full`
|
||||||
- agnoster_short
|
- `agnoster_short`
|
||||||
- agnoster_left
|
- `agnoster_left`
|
||||||
- full
|
- `full`
|
||||||
- folder
|
- `folder`
|
||||||
- mixed
|
- `mixed`
|
||||||
- letter
|
- `letter`
|
||||||
- unique
|
- `unique`
|
||||||
|
|
||||||
### Agnoster
|
### Agnoster
|
||||||
|
|
||||||
|
@ -146,10 +148,12 @@ folders at the same level, so if `C:\projectA\dev` and `C:\projectB\dev` exist,
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Path`: `string` - the current directory (based on the `style` property)
|
| Name | Type | Description |
|
||||||
- `.Parent`: `string` - the current directory's parent folder (designed for use with style `folder`)
|
| ------------- | --------- | ---------------------------------------------------------------------------- |
|
||||||
- `.Location`: `string` - the current directory (raw value)
|
| `.Path` | `string` | the current directory (based on the `style` property) |
|
||||||
- `.StackCount`: `int` - the stack count
|
| `.Parent` | `string` | the current directory's parent folder (designed for use with style `folder`) |
|
||||||
- `.Writable`: `boolean` - is the current directory writable by the user or not
|
| `.Location` | `string` | the current directory (raw value) |
|
||||||
|
| `.StackCount` | `int` | the stack count |
|
||||||
|
| `.Writable` | `boolean` | is the current directory writable by the user or not |
|
||||||
|
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -23,16 +23,12 @@ Display the currently active perl version.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- home_enabled: `boolean` - display the segment in the HOME folder or not - defaults to `false`
|
| Name | Type | Description |
|
||||||
- fetch_version: `boolean` - display the perl version - defaults to `true`
|
| ---------------------- | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- missing_command_text: `string` - text to display when the perl command is missing - defaults to empty
|
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` |
|
||||||
- display_mode: `string` - determines when the segment is displayed
|
| `fetch_version` | `boolean` | display the perl version - defaults to `true` |
|
||||||
- `always`: the segment is always displayed
|
| `missing_command_text` | `string` | text to display when the perl command is missing - defaults to empty |
|
||||||
- `files`: the segment is only displayed when one of the following files is present:
|
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when one of the following files is present (**default**):<ul><li>`.perl-version`</li><li>`*.pl`</li><li>`*.p`</li><li>`*.t`</li></ul></li></ul> |
|
||||||
- `.perl-version`
|
|
||||||
- `*.pl`
|
|
||||||
- `*.p,`
|
|
||||||
- `*.t`
|
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -46,10 +42,12 @@ Display the currently active perl version.
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Full`: `string` - the full version
|
| Name | Type | Description |
|
||||||
- `.Major`: `string` - major number
|
| -------- | -------- | -------------------------------------------------- |
|
||||||
- `.Minor`: `string` - minor number
|
| `.Full` | `string` | the full version |
|
||||||
- `.Patch`: `string` - patch number
|
| `.Major` | `string` | major number |
|
||||||
- `.Error`: `string` - error encountered when fetching the version string
|
| `.Minor` | `string` | minor number |
|
||||||
|
| `.Patch` | `string` | patch number |
|
||||||
|
| `.Error` | `string` | error encountered when fetching the version string |
|
||||||
|
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -17,21 +17,19 @@ Display the currently active php version.
|
||||||
"powerline_symbol": "\uE0B0",
|
"powerline_symbol": "\uE0B0",
|
||||||
"foreground": "#ffffff",
|
"foreground": "#ffffff",
|
||||||
"background": "#4063D8",
|
"background": "#4063D8",
|
||||||
"template": " \ue73d {{ .Full }} ",
|
"template": " \ue73d {{ .Full }} "
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- home_enabled: `boolean` - display the segment in the HOME folder or not - defaults to `false`
|
| Name | Type | Description |
|
||||||
- fetch_version: `boolean` - display the php version - defaults to `true`
|
| ---------------------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- missing_command_text: `string` - text to display when the command is missing - defaults to empty
|
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` |
|
||||||
- display_mode: `string` - determines when the segment is displayed
|
| `fetch_version` | `boolean` | display the php version - defaults to `true` |
|
||||||
- `always`: the segment is always displayed
|
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty |
|
||||||
- `files`: the segment is only displayed when `*.php`, `composer.json`, `composer.lock`, `.php-version` or `blade.php`
|
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when one of the following files is present (**default**):<ul><li>`*.php`</li><li>`composer.json`</li><li>`composer.lock`</li><li>`.php-version`</li><li>`blade.php`</li></ul></li></ul> |
|
||||||
files are present (default)
|
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||||
- version_url_template: `string` - a go [text/template][go-text-template] [template][templates] that creates
|
|
||||||
the URL of the version info / release notes
|
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -45,12 +43,14 @@ the URL of the version info / release notes
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Full`: `string` - the full version
|
| Name | Type | Description |
|
||||||
- `.Major`: `string` - major number
|
| -------- | -------- | -------------------------------------------------- |
|
||||||
- `.Minor`: `string` - minor number
|
| `.Full` | `string` | the full version |
|
||||||
- `.Patch`: `string` - patch number
|
| `.Major` | `string` | major number |
|
||||||
- `.URL`: `string` - URL of the version info / release notes
|
| `.Minor` | `string` | minor number |
|
||||||
- `.Error`: `string` - error encountered when fetching the version string
|
| `.Patch` | `string` | patch number |
|
||||||
|
| `.URL` | `string` | URL of the version info / release notes |
|
||||||
|
| `.Error` | `string` | error encountered when fetching the version string |
|
||||||
|
|
||||||
[go-text-template]: https://golang.org/pkg/text/template/
|
[go-text-template]: https://golang.org/pkg/text/template/
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -10,14 +10,6 @@ Display Plastic SCM information when in a plastic repository. Also works for sub
|
||||||
For maximum compatibility, make sure your `cm` executable is up-to-date
|
For maximum compatibility, make sure your `cm` executable is up-to-date
|
||||||
(when branch or status information is incorrect for example).
|
(when branch or status information is incorrect for example).
|
||||||
|
|
||||||
Local changes can also be displayed which uses the following syntax (see `.Status` property below):
|
|
||||||
|
|
||||||
- `+` added
|
|
||||||
- `~` modified
|
|
||||||
- `-` deleted
|
|
||||||
- `>` moved
|
|
||||||
- `x` unmerged
|
|
||||||
|
|
||||||
## Sample Configuration
|
## Sample Configuration
|
||||||
|
|
||||||
```json
|
```json
|
||||||
|
@ -55,21 +47,25 @@ by leaving a like!
|
||||||
As doing multiple `cm` calls can slow down the prompt experience, we do not fetch information by default.
|
As doing multiple `cm` calls can slow down the prompt experience, we do not fetch information by default.
|
||||||
You can set the following property to `true` to enable fetching additional information (and populate the template).
|
You can set the following property to `true` to enable fetching additional information (and populate the template).
|
||||||
|
|
||||||
- fetch_status: `boolean` - fetch the local changes - defaults to `false`
|
|`fetch_status`|`boolean`|fetch the local changes - defaults to `false`|
|
||||||
|
|
||||||
### Icons
|
### Icons
|
||||||
|
|
||||||
#### Branch
|
#### Branch
|
||||||
|
|
||||||
- branch_icon: `string` - the icon to use in front of the git branch name - defaults to `\uE0A0 `
|
| Name | Type | Description |
|
||||||
- full_branch_path: `bool` - display the full branch path: */main/fix-001* instead of *fix-001* - defaults to `true`
|
| ------------------- | -------- | -------------------------------------------------------------------------------------------- |
|
||||||
- branch_max_length: `int` - the max length for the displayed branch name where `0` implies full length - defaults to `0`
|
| `branch_icon` | `string` | the icon to use in front of the git branch name - defaults to `\uE0A0 ` |
|
||||||
- truncate_symbol: `string` - the icon to display when a branch name is truncated - defaults to empty
|
| `full_branch_path` | `bool` | display the full branch path: `_/main/fix-001_` instead of `_fix-001_` - defaults to `true` |
|
||||||
|
| `branch_max_length` | `int` | the max length for the displayed branch name where `0` implies full length - defaults to `0` |
|
||||||
|
| `truncate_symbol` | `string` | the icon to display when a branch name is truncated - defaults to empty |
|
||||||
|
|
||||||
#### Selector
|
#### Selector
|
||||||
|
|
||||||
- commit_icon: `string` - icon/text to display before the commit context (detached HEAD) - defaults to `\uF417`
|
| Name | Type | Description |
|
||||||
- tag_icon: `string` - icon/text to display before the tag context - defaults to `\uF412`
|
| ------------- | -------- | ------------------------------------------------------------------------------------- |
|
||||||
|
| `commit_icon` | `string` | icon/text to display before the commit context (detached HEAD) - defaults to `\uF417` |
|
||||||
|
| `tag_icon` | `string` | icon/text to display before the tag context - defaults to `\uF412` |
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -83,21 +79,34 @@ You can set the following property to `true` to enable fetching additional infor
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Selector`: `string` - the current selector context (branch/changeset/label)
|
| Name | Type | Description |
|
||||||
- `.Behind`: `bool` - the current workspace is behind and changes are incoming
|
| --------------- | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- `.Status`: `PlasticStatus` - changes in the workspace (see below)
|
| `.Selector` | `string` | the current selector context (branch/changeset/label) |
|
||||||
- `.MergePending`: `bool` - if a merge is pending and needs to be commited
|
| `.Behind` | `bool` | the current workspace is behind and changes are incoming |
|
||||||
(kown issue: when no file is left after a *Change/Delete conflict* merge, the `MergePending` property is not set)
|
| `.Status` | `PlasticStatus` | changes in the workspace (see below) |
|
||||||
|
| `.MergePending` | `bool` | if a merge is pending and needs to be commited (known issue: when no file is left after a _Change/Delete conflict_ merge, the `MergePending` property is not set) |
|
||||||
|
|
||||||
### PlasticStatus
|
### PlasticStatus
|
||||||
|
|
||||||
- `.Unmerged`: `int` - number of unmerged changes
|
| Name | Type | Description |
|
||||||
- `.Deleted`: `int` - number of deleted changes
|
| ----------- | --------- | -------------------------------------------- |
|
||||||
- `.Added`: `int` - number of added changes
|
| `.Unmerged` | `int` | number of unmerged changes |
|
||||||
- `.Modified`: `int` - number of modified changes
|
| `.Deleted` | `int` | number of deleted changes |
|
||||||
- `.Moved`: `int` - number of moved changes
|
| `.Added` | `int` | number of added changes |
|
||||||
- `.Changed`: `boolean` - if the status contains changes or not
|
| `.Modified` | `int` | number of modified changes |
|
||||||
- `.String`: `string` - a string representation of the changes above
|
| `.Moved` | `int` | number of moved changes |
|
||||||
|
| `.Changed` | `boolean` | if the status contains changes or not |
|
||||||
|
| `.String` | `string` | a string representation of the changes above |
|
||||||
|
|
||||||
|
Local changes use the following syntax:
|
||||||
|
|
||||||
|
| Icon | Description |
|
||||||
|
| ---- | ----------- |
|
||||||
|
| `+` | added |
|
||||||
|
| `~` | modified |
|
||||||
|
| `-` | deleted |
|
||||||
|
| `v` | moved |
|
||||||
|
| `x` | unmerged |
|
||||||
|
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
[fa-issue]: https://github.com/FortAwesome/Font-Awesome/issues/18504
|
[fa-issue]: https://github.com/FortAwesome/Font-Awesome/issues/18504
|
||||||
|
|
|
@ -41,7 +41,9 @@ Supports:
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Version`: `string` - The version of your project
|
| Name | Type | Description |
|
||||||
- `.Name`: `string` - The name of your project
|
| ---------- | -------- | --------------------------- |
|
||||||
|
| `.Version` | `string` | The version of your project |
|
||||||
|
| `.Name` | `string` | The name of your project |
|
||||||
|
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -24,20 +24,15 @@ Supports conda, virtualenv and pyenv (if python points to pyenv shim).
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- home_enabled: `boolean` - display the segment in the HOME folder or not - defaults to `false`
|
| Name | Type | Description |
|
||||||
- fetch_virtual_env: `boolean` - fetch the name of the virtualenv or not - defaults to `true`
|
| ---------------------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- display_default: `boolean` - show the name of the virtualenv when it's default (`system`, `base`)
|
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` |
|
||||||
or not - defaults to `true`
|
| `fetch_virtual_env` | `boolean` | fetch the name of the virtualenv or not - defaults to `true` |
|
||||||
- fetch_version: `boolean` - fetch the python version - defaults to `true`
|
| `display_default` | `boolean` | show the name of the virtualenv when it's default (`system`, `base`) or not - defaults to `true` |
|
||||||
- missing_command_text: `string` - text to display when the command is missing - defaults to empty
|
| `fetch_version` | `boolean` | fetch the python version - defaults to `true` |
|
||||||
- display_mode: `string` - determines when the segment is displayed
|
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty |
|
||||||
- `always`: the segment is always displayed
|
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when one of the following files is present:<ul><li>`*.py`</li><li>`*.ipynb`</li><li>`pyproject.toml`</li><li>`venv.bak`</li><li>`venv`</li><li>`.venv`</li></ul></li><li>`environment`: the segment is only displayed when a virtual env is present (**default**)</li><li>`context`: the segment is only displayed when either `environment` or `files` is active</li></ul> |
|
||||||
- `files`: the segment is only displayed when `*.py`, `*.ipynb`, `pyproject.toml`, `venv.bak`, `venv`, or `.venv`
|
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||||
files are present
|
|
||||||
- `environment`: the segment is only displayed when a virtual env is present (default)
|
|
||||||
- `context`: the segment is only displayed when either `environment` or `files` is active
|
|
||||||
- version_url_template: `string` - a go [text/template][go-text-template] [template][templates] that creates
|
|
||||||
the URL of the version info / release notes
|
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -51,13 +46,15 @@ the URL of the version info / release notes
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Venv`: `string` - the virtual environment name (if present)
|
| Name | Type | Description |
|
||||||
- `.Full`: `string` - the full version
|
| -------- | -------- | -------------------------------------------------- |
|
||||||
- `.Major`: `string` - major number
|
| `.Venv` | `string` | the virtual environment name (if present) |
|
||||||
- `.Minor`: `string` - minor number
|
| `.Full` | `string` | the full version |
|
||||||
- `.Patch`: `string` - patch number
|
| `.Major` | `string` | major number |
|
||||||
- `.URL`: `string` - URL of the version info / release notes
|
| `.Minor` | `string` | minor number |
|
||||||
- `.Error`: `string` - error encountered when fetching the version string
|
| `.Patch` | `string` | patch number |
|
||||||
|
| `.URL` | `string` | URL of the version info / release notes |
|
||||||
|
| `.Error` | `string` | error encountered when fetching the version string |
|
||||||
|
|
||||||
[go-text-template]: https://golang.org/pkg/text/template/
|
[go-text-template]: https://golang.org/pkg/text/template/
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -23,15 +23,13 @@ Display the currently active [R][r-homepage] version.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- home_enabled: `boolean` - display the segment in the HOME folder or not - defaults to `false`
|
| Name | Type | Description |
|
||||||
- fetch_version: `boolean` - display the R version - defaults to `true`
|
| ---------------------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- missing_command_text: `string` - text to display when the command is missing - defaults to empty
|
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` |
|
||||||
- display_mode: `string` - determines when the segment is displayed
|
| `fetch_version` | `boolean` | display the R version - defaults to `true` |
|
||||||
- `always`: the segment is always displayed
|
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty |
|
||||||
- `files`: the segment is only displayed when `*.R`, `*.Rmd`, `*.Rsx`, `*.Rda`, `*.Rd`, `*.Rproj`, or `.Rproj.user`
|
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when one of the following files is present (**default**):<ul><li>`*.R`</li><li>`*.Rmd`</li><li>`*.Rsx`</li><li>`*.Rda`</li><li>`*.Rd`</li><li>`*.Rproj`</li><li>`.Rproj.user`</li></ul></li></ul> |
|
||||||
files are present (default)
|
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||||
- version_url_template: `string` - a go [text/template][go-text-template] [template][templates] that creates
|
|
||||||
the URL of the version info / release notes
|
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -45,12 +43,14 @@ the URL of the version info / release notes
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Full`: `string` - the full version
|
| Name | Type | Description |
|
||||||
- `.Major`: `string` - major number
|
| -------- | -------- | -------------------------------------------------- |
|
||||||
- `.Minor`: `string` - minor number
|
| `.Full` | `string` | the full version |
|
||||||
- `.Patch`: `string` - patch number
|
| `.Major` | `string` | major number |
|
||||||
- `.URL`: `string` - URL of the version info / release notes
|
| `.Minor` | `string` | minor number |
|
||||||
- `.Error`: `string` - error encountered when fetching the version string
|
| `.Patch` | `string` | patch number |
|
||||||
|
| `.URL` | `string` | URL of the version info / release notes |
|
||||||
|
| `.Error` | `string` | error encountered when fetching the version string |
|
||||||
|
|
||||||
[go-text-template]: https://golang.org/pkg/text/template/
|
[go-text-template]: https://golang.org/pkg/text/template/
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -23,12 +23,12 @@ Display the currently active ruby version.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- home_enabled: `boolean` - display the segment in the HOME folder or not - defaults to `false`
|
| Name | Type | Description |
|
||||||
- fetch_version: `boolean` - display the ruby version - defaults to `true`
|
| ---------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- missing_command_text: `string` - text to display when the command is missing - defaults to empty
|
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` |
|
||||||
- display_mode: `string` - determines when the segment is displayed
|
| `fetch_version` | `boolean` | display the ruby version - defaults to `true` |
|
||||||
- `always`: the segment is always displayed
|
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty |
|
||||||
- `files`: the segment is only displayed when `*.rb`, `Gemfile` or `Rakefile` files are present (default)
|
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.rb`, `Gemfile` or `Rakefile` files are present (**default**)</li></ul> |
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -42,10 +42,12 @@ Display the currently active ruby version.
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Full`: `string` - the full version
|
| Name | Type | Description |
|
||||||
- `.Major`: `string` - major number
|
| -------- | -------- | -------------------------------------------------- |
|
||||||
- `.Minor`: `string` - minor number
|
| `.Full` | `string` | the full version |
|
||||||
- `.Patch`: `string` - patch number
|
| `.Major` | `string` | major number |
|
||||||
- `.Error`: `string` - error encountered when fetching the version string
|
| `.Minor` | `string` | minor number |
|
||||||
|
| `.Patch` | `string` | patch number |
|
||||||
|
| `.Error` | `string` | error encountered when fetching the version string |
|
||||||
|
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -23,12 +23,12 @@ Display the currently active rust version.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- home_enabled: `boolean` - display the segment in the HOME folder or not - defaults to `false`
|
| Name | Type | Description |
|
||||||
- fetch_version: `boolean` - display the rust version (`rustc --version`) - defaults to `true`
|
| ---------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
- missing_command_text: `string` - text to display when the command is missing - defaults to empty
|
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` |
|
||||||
- display_mode: `string` - determines when the segment is displayed
|
| `fetch_version` | `boolean` | display the rust version (`rustc --version`) - defaults to `true` |
|
||||||
- `always`: the segment is always displayed
|
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty |
|
||||||
- `files`: the segment is only displayed when `*.rs`, `Cargo.toml` or `Cargo.lock` files are present (default)
|
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.rs`, `Cargo.toml` or `Cargo.lock` files are present (**default**)</li></ul> |
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -42,10 +42,12 @@ Display the currently active rust version.
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Full`: `string` - the full version
|
| Name | Type | Description |
|
||||||
- `.Major`: `string` - major number
|
| -------- | -------- | -------------------------------------------------- |
|
||||||
- `.Minor`: `string` - minor number
|
| `.Full` | `string` | the full version |
|
||||||
- `.Patch`: `string` - patch number
|
| `.Major` | `string` | major number |
|
||||||
- `.Error`: `string` - error encountered when fetching the version string
|
| `.Minor` | `string` | minor number |
|
||||||
|
| `.Patch` | `string` | patch number |
|
||||||
|
| `.Error` | `string` | error encountered when fetching the version string |
|
||||||
|
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -34,9 +34,11 @@ Show the current user and host name.
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.UserName`: `string` - the current user's name
|
| Name | Type | Description |
|
||||||
- `.HostName`: `string` - the current computer's name
|
| ------------- | --------- | -------------------------------- |
|
||||||
- `.SSHSession`: `boolean` - active SSH session or not
|
| `.UserName` | `string` | the current user's name |
|
||||||
- `.Root`: `boolean` - are you a root/admin user or not
|
| `.HostName` | `string` | the current computer's name |
|
||||||
|
| `.SSHSession` | `boolean` | active SSH session or not |
|
||||||
|
| `.Root` | `boolean` | are you a root/admin user or not |
|
||||||
|
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -27,7 +27,7 @@ Show the current shell name (zsh, PowerShell, bash, ...).
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- mapped_shell_names: `object` - custom glyph/text to use in place of specified shell names (case-insensitive)
|
|`mapped_shell_names`|`object`|custom glyph/text to use in place of specified shell names (case-insensitive)|
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -41,7 +41,9 @@ Show the current shell name (zsh, PowerShell, bash, ...).
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Name`: `string` - the shell name
|
| Name | Type | Description |
|
||||||
- `.Version`: `string` - the shell version
|
| ---------- | -------- | ----------------- |
|
||||||
|
| `.Name` | `string` | the shell name |
|
||||||
|
| `.Version` | `string` | the shell version |
|
||||||
|
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -34,9 +34,11 @@ On _Windows/WSL_, **only the playing state is supported** (no information when p
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- playing_icon: `string` - text/icon to show when playing - defaults to `\uE602 `
|
| Name | Type | Description |
|
||||||
- paused_icon: `string` - text/icon to show when paused - defaults to `\uF8E3 `
|
| -------------- | -------- | ------------------------------------------------------ |
|
||||||
- stopped_icon: `string` - text/icon to show when stopped - defaults to `\uF04D `
|
| `playing_icon` | `string` | text/icon to show when playing - defaults to `\uE602 ` |
|
||||||
|
| `paused_icon` | `string` | text/icon to show when paused - defaults to `\uF8E3 ` |
|
||||||
|
| `stopped_icon` | `string` | text/icon to show when stopped - defaults to `\uF04D ` |
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -50,10 +52,12 @@ On _Windows/WSL_, **only the playing state is supported** (no information when p
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Status`: `string` - player status (`playing`, `paused`, `stopped`)
|
| Name | Type | Description |
|
||||||
- `.Artist`: `string` - current artist
|
| --------- | -------- | ---------------------------------------------- |
|
||||||
- `.Track`: `string` - current track
|
| `.Status` | `string` | player status (`playing`, `paused`, `stopped`) |
|
||||||
- `.Icon`: `string` - icon (based on `.Status`)
|
| `.Artist` | `string` | current artist |
|
||||||
|
| `.Track` | `string` | current track |
|
||||||
|
| `.Icon` | `string` | icon (based on `.Status`) |
|
||||||
|
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
[spotify]: https://www.spotify.com
|
[spotify]: https://www.spotify.com
|
||||||
|
|
|
@ -4,7 +4,7 @@ title: Strava
|
||||||
sidebar_label: Strava
|
sidebar_label: Strava
|
||||||
---
|
---
|
||||||
|
|
||||||
import StravaConnect from '/img/strava_connect.svg';
|
import StravaConnect from "/img/strava_connect.svg";
|
||||||
|
|
||||||
## What
|
## What
|
||||||
|
|
||||||
|
@ -58,16 +58,18 @@ if that color is visible against any of your backgrounds.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- access_token: `string` - token from Strava login, see login link in section above.
|
| Name | Type | Description |
|
||||||
- refresh_token: `string` - token from Strava login, see login link in section above.
|
| --------------------- | -------- | --------------------------------------------------------------------------------------------------------------- |
|
||||||
- expires_in: `int` - the default timeout of the token from the Strava login
|
| `access_token` | `string` | token from Strava login, see login link in section above. |
|
||||||
- http_timeout: `int` - how long do you want to wait before you want to see your prompt more than your strava data? - defaults to 500ms
|
| `refresh_token` | `string` | token from Strava login, see login link in section above. |
|
||||||
- CacheTimeout: `int` in minutes - How long do you want your Strava data cached? - defaults to 5 min
|
| `expires_in` | `int` | the default timeout of the token from the Strava login |
|
||||||
- RideIcon - defaults to `\uf5a2`
|
| `http_timeout` | `int` | how long do you want to wait before you want to see your prompt more than your strava data? - defaults to 500ms |
|
||||||
- RunIcon - defaults to `\ufc0c`
|
| `CacheTimeout` | `int` | in minutes - How long do you want your Strava data cached? - defaults to 5 min |
|
||||||
- SkiingIcon - defaults to `\ue213`
|
| `RideIcon` | `string` | defaults to `\uf5a2` |
|
||||||
- WorkOutIcon - defaults to `\ue213`
|
| `RunIcon` | `string` | defaults to `\ufc0c` |
|
||||||
- UnknownActivityIcon - defaults to `\ue213`
|
| `SkiingIcon` | `string` | defaults to `\ue213` |
|
||||||
|
| `WorkOutIcon` | `string` | defaults to `\ue213` |
|
||||||
|
| `UnknownActivityIcon` | `string` | defaults to `\ue213` |
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -83,21 +85,23 @@ if that color is visible against any of your backgrounds.
|
||||||
|
|
||||||
The properties below are available for use in your template
|
The properties below are available for use in your template
|
||||||
|
|
||||||
- `.ID`: `time` - The id of the entry
|
| Name | Type | Description |
|
||||||
- `.DateString`: `time` - The timestamp of the entry
|
| ----------------------- | --------- | ----------------------------------- |
|
||||||
- `.Type`: `string` - Activity types as used in strava
|
| `.ID` | `time` | The id of the entry |
|
||||||
- `.UtcOffset`: `int` - The UTC offset
|
| `.DateString` | `time` | The timestamp of the entry |
|
||||||
- `.Hours`: `int` - Number of hours since last activity
|
| `.Type` | `string` | Activity types as used in strava |
|
||||||
- `.Name`: `string` - The name of the activity
|
| `.UtcOffset` | `int` | The UTC offset |
|
||||||
- `.Duration`: `float64` - Total duration in seconds
|
| `.Hours` | `int` | Number of hours since last activity |
|
||||||
- `.Distance`: `float64` - Total distance in meters
|
| `.Name` | `string` | The name of the activity |
|
||||||
- `.DeviceWatts`: `bool` - Device has watts
|
| `.Duration` | `float64` | Total duration in seconds |
|
||||||
- `.AverageWatts`: `float64` - Average watts
|
| `.Distance` | `float64` | Total distance in meters |
|
||||||
- `.WeightedAverageWatts`:`float64` - Weighted average watts
|
| `.DeviceWatts` | `bool` | Device has watts |
|
||||||
- `.AverageHeartRate`:`float64` - Average heart rate
|
| `.AverageWatts` | `float64` | Average watts |
|
||||||
- `.MaxHeartRate`: `float64` - Max heart rate
|
| `.WeightedAverageWatts` | `float64` | Weighted average watts |
|
||||||
- `.KudosCount`: `int` - Kudos count
|
| `.AverageHeartRate` | `float64` | Average heart rate |
|
||||||
- `.Icon`: `string` - Activity based icon
|
| `.MaxHeartRate` | `float64` | Max heart rate |
|
||||||
|
| `.KudosCount` | `int` | Kudos count |
|
||||||
|
| `.Icon` | `string` | Activity based icon |
|
||||||
|
|
||||||
Now, go out and have a fun ride or run!
|
Now, go out and have a fun ride or run!
|
||||||
|
|
||||||
|
|
|
@ -9,14 +9,6 @@ sidebar_label: Subversion
|
||||||
Display subversion information when in a subversion repository. Also works for subfolders. For maximum compatibility,
|
Display subversion information when in a subversion repository. Also works for subfolders. For maximum compatibility,
|
||||||
make sure your `svn` executable is up-to-date (when branch or status information is incorrect for example).
|
make sure your `svn` executable is up-to-date (when branch or status information is incorrect for example).
|
||||||
|
|
||||||
Local changes can also be displayed which uses the following syntax:
|
|
||||||
|
|
||||||
- `+` added
|
|
||||||
- `!` conflicted
|
|
||||||
- `-` deleted
|
|
||||||
- `~` modified
|
|
||||||
- `>` moved
|
|
||||||
|
|
||||||
## Sample Configuration
|
## Sample Configuration
|
||||||
|
|
||||||
```json
|
```json
|
||||||
|
@ -39,9 +31,10 @@ Local changes can also be displayed which uses the following syntax:
|
||||||
As doing multiple [subversion][svn] calls can slow down the prompt experience, we do not fetch information by default.
|
As doing multiple [subversion][svn] calls can slow down the prompt experience, we do not fetch information by default.
|
||||||
You can set the following properties to `true` to enable fetching additional information (and populate the template).
|
You can set the following properties to `true` to enable fetching additional information (and populate the template).
|
||||||
|
|
||||||
- fetch_status: `boolean` - fetch the local changes - defaults to `false`
|
| Name | Type | Description |
|
||||||
- native_fallback: `boolean` - when set to `true` and `svn.exe` is not available when inside a WSL2 shared Windows drive, we will fallback to the native svn
|
| ----------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
executable to fetch data. Not all information can be displayed in this case. Defaults to `false`.
|
| `fetch_status` | `boolean` | fetch the local changes - defaults to `false` |
|
||||||
|
| `native_fallback` | `boolean` | when set to `true` and `svn.exe` is not available when inside a WSL2 shared Windows drive, we will fallback to the native svn executable to fetch data. Not all information can be displayed in this case. Defaults to `false`. |
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -55,20 +48,34 @@ executable to fetch data. Not all information can be displayed in this case. Def
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Working`: `SvnStatus` - changes in the worktree (see below)
|
| Name | Type | Description |
|
||||||
- `.Branch`: `string` - current branch (releative URL reported by `svn info`)
|
| ---------- | ----------- | ----------------------------------------------------- |
|
||||||
- `.BaseRev`: `int` - the currently checked out revision number
|
| `.Working` | `SvnStatus` | changes in the worktree (see below) |
|
||||||
|
| `.Branch` | `string` | current branch (releative URL reported by `svn info`) |
|
||||||
|
| `.BaseRev` | `int` | the currently checked out revision number |
|
||||||
|
|
||||||
### SvnStatus
|
### SvnStatus
|
||||||
|
|
||||||
- `.Modified`: `int` - number of modified files
|
| Name | Type | Description |
|
||||||
- `.Deleted`: `int` - number of deleted files
|
| --------------- | --------- | ---------------------------------------------- |
|
||||||
- `.Added`: `int` - number of added files
|
| `.Modified` | `int` | number of modified files |
|
||||||
- `.Moved`: `int` - number of changed moved files
|
| `.Deleted` | `int` | number of deleted files |
|
||||||
- `.Conflicted`: `int` - number of changed tracked files with conflicts
|
| `.Added` | `int` | number of added files |
|
||||||
- `.Changed`: `boolean` - if the status contains changes or not
|
| `.Moved` | `int` | number of changed moved files |
|
||||||
- `.HasConflicts`: `boolean` - if the status contains conflicts or not
|
| `.Conflicted` | `int` | number of changed tracked files with conflicts |
|
||||||
- `.String`: `string` - a string representation of the changes above
|
| `.Changed` | `boolean` | if the status contains changes or not |
|
||||||
|
| `.HasConflicts` | `boolean` | if the status contains conflicts or not |
|
||||||
|
| `.String` | `string` | a string representation of the changes above |
|
||||||
|
|
||||||
|
Local changes use the following syntax:
|
||||||
|
|
||||||
|
| Icon | Description |
|
||||||
|
| ---- | ----------- |
|
||||||
|
| `+` | added |
|
||||||
|
| `!` | conflicted |
|
||||||
|
| `-` | deleted |
|
||||||
|
| `~` | modified |
|
||||||
|
| `>` | moved |
|
||||||
|
|
||||||
[svn]: https://subversion.apache.org
|
[svn]: https://subversion.apache.org
|
||||||
[templates]: /docs/config-templates
|
[templates]: /docs/config-templates
|
||||||
|
|
|
@ -23,14 +23,13 @@ Display the currently active [Swift][swift] version.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- home_enabled: `boolean` - display the segment in the HOME folder or not - defaults to `false`
|
| Name | Type | Description |
|
||||||
- fetch_version: `boolean` - display the swift version - defaults to `true`
|
| ---------------------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- missing_command_text: `string` - text to display when the command is missing - defaults to empty
|
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` |
|
||||||
- display_mode: `string` - determines when the segment is displayed
|
| `fetch_version` | `boolean` | display the swift version - defaults to `true` |
|
||||||
- `always`: the segment is always displayed
|
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty |
|
||||||
- `files`: the segment is only displayed when `*.swift` or `*.SWIFT` files are present (default)
|
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.swift` or `*.SWIFT` files are present (**default**)</li></ul> |
|
||||||
- version_url_template: `string` - a go [text/template][go-text-template] [template][templates] that creates
|
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||||
the URL of the version info / release notes
|
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -44,12 +43,14 @@ the URL of the version info / release notes
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Full`: `string` - the full version
|
| Name | Type | Description |
|
||||||
- `.Major`: `string` - major number
|
| -------- | -------- | -------------------------------------------------- |
|
||||||
- `.Minor`: `string` - minor number
|
| `.Full` | `string` | the full version |
|
||||||
- `.Patch`: `string` - patch number
|
| `.Major` | `string` | major number |
|
||||||
- `.URL`: `string` - URL of the version info / release notes
|
| `.Minor` | `string` | minor number |
|
||||||
- `.Error`: `string` - error encountered when fetching the version string
|
| `.Patch` | `string` | patch number |
|
||||||
|
| `.URL` | `string` | URL of the version info / release notes |
|
||||||
|
| `.Error` | `string` | error encountered when fetching the version string |
|
||||||
|
|
||||||
[go-text-template]: https://golang.org/pkg/text/template/
|
[go-text-template]: https://golang.org/pkg/text/template/
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -26,7 +26,9 @@ Display SysInfo.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- Precision: `int` - The precision used for any float values - defaults to 2
|
| Name | Type | Description |
|
||||||
|
| ----------- | ----- | ------------------------------------------------------- |
|
||||||
|
| `Precision` | `int` | The precision used for any float values - defaults to 2 |
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -40,19 +42,20 @@ Display SysInfo.
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.PhysicalTotalMemory`: `int` - is the total of used physical memory
|
| Name | Type | Description |
|
||||||
- `.PhysicalAvailableMemory`: `int` - is the total available physical memory (i.e. the amount immediately available to processes)
|
| -------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- `.PhysicalFreeMemory`: `int` - is the total of free physical memory (i.e. considers memory used by the system for any reason
|
| `.PhysicalTotalMemory` | `int` | is the total of used physical memory |
|
||||||
[e.g. caching] as occupied)
|
| `.PhysicalAvailableMemory` | `int` | is the total available physical memory (i.e. the amount immediately available to processes) |
|
||||||
- `.PhysicalPercentUsed`: `float64` - is the percentage of physical memory in usage
|
| `.PhysicalFreeMemory` | `int` | is the total of free physical memory (i.e. considers memory used by the system for any reason [e.g. caching] as occupied) |
|
||||||
- `.SwapTotalMemory`: `int` - is the total of used swap memory
|
| `.PhysicalPercentUsed` | `float64` | is the percentage of physical memory in usage |
|
||||||
- `.SwapFreeMemory`: `int` - is the total of free swap memory
|
| `.SwapTotalMemory` | `int` | is the total of used swap memory |
|
||||||
- `.SwapPercentUsed`: `float64` - is the percentage of swap memory in usage
|
| `.SwapFreeMemory` | `int` | is the total of free swap memory |
|
||||||
- `.Load1`: `float64` - is the current load1 (can be empty on windows)
|
| `.SwapPercentUsed` | `float64` | is the percentage of swap memory in usage |
|
||||||
- `.Load5`: `float64` - is the current load5 (can be empty on windows)
|
| `.Load1` | `float64` | is the current load1 (can be empty on windows) |
|
||||||
- `.Load15`: `float64` - is the current load15 (can be empty on windows)
|
| `.Load5` | `float64` | is the current load5 (can be empty on windows) |
|
||||||
- `.CPU`: `[]struct` - an array of [InfoStat][cpuinfo] object, you can use any property it has e.g. `(index .CPU 0).Cores`
|
| `.Load15` | `float64` | is the current load15 (can be empty on windows) |
|
||||||
- `.Disks`: `[]struct` - an array of [IOCountersStat][ioinfo] object, you can use any property it has e.g. `.Disks.disk0.IoTime`
|
| `.CPU` | `[]struct` | an array of [InfoStat][cpuinfo] object, you can use any property it has e.g. `(index .CPU 0).Cores` |
|
||||||
|
| `.Disks` | `[]struct` | an array of [IOCountersStat][ioinfo] object, you can use any property it has e.g. `.Disks.disk0.IoTime` |
|
||||||
|
|
||||||
[cpuinfo]: https://github.com/shirou/gopsutil/blob/78065a7ce2021f6a78c8d6f586a2683ba501dcec/cpu/cpu.go#L32
|
[cpuinfo]: https://github.com/shirou/gopsutil/blob/78065a7ce2021f6a78c8d6f586a2683ba501dcec/cpu/cpu.go#L32
|
||||||
[ioinfo]: https://github.com/shirou/gopsutil/blob/e0ec1b9cda4470db704a862282a396986d7e930c/disk/disk.go#L32
|
[ioinfo]: https://github.com/shirou/gopsutil/blob/e0ec1b9cda4470db704a862282a396986d7e930c/disk/disk.go#L32
|
||||||
|
|
|
@ -27,7 +27,10 @@ This requires a terraform binary in your PATH and will only show in directories
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- fetch_version: `boolean` - fetch the version information from `versions.tf`, `main.tf` or `terraform.tfstate` -
|
| Name | Type | Description |
|
||||||
|
| --------------- | --------- | ---------------------------------------------------------------------------------- |
|
||||||
|
| `fetch_version` | `boolean` | fetch the version information from `versions.tf`, `main.tf` or `terraform.tfstate` |
|
||||||
|
|
||||||
defaults to `false`
|
defaults to `false`
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
@ -42,7 +45,9 @@ defaults to `false`
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.WorkspaceName`: `string` - is the current workspace name
|
| Name | Type | Description |
|
||||||
- `.Version`: `string` - terraform version (set `fetch_version` to `true`)
|
| ---------------- | -------- | ------------------------------------------------- |
|
||||||
|
| `.WorkspaceName` | `string` | is the current workspace name |
|
||||||
|
| `.Version` | `string` | terraform version (set `fetch_version` to `true`) |
|
||||||
|
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -23,13 +23,15 @@ Display text.
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Root`: `boolean` - is the current user root/admin or not
|
| Name | Type | Description |
|
||||||
- `.Path`: `string` - the current working directory
|
| -------------- | --------- | ------------------------------------------------------------------------- |
|
||||||
- `.Folder`: `string` - the current working folder
|
| `.Root` | `boolean` | is the current user root/admin or not |
|
||||||
- `.Shell`: `string` - the current shell name
|
| `.Path` | `string` | the current working directory |
|
||||||
- `.UserName`: `string` - the current user name
|
| `.Folder` | `string` | the current working folder |
|
||||||
- `.HostName`: `string` - the host name
|
| `.Shell` | `string` | the current shell name |
|
||||||
- `.Env.VarName`: `string` - Any environment variable where `VarName` is the environment variable name
|
| `.UserName` | `string` | the current user name |
|
||||||
|
| `.HostName` | `string` | the host name |
|
||||||
|
| `.Env.VarName` | `string` | Any environment variable where `VarName` is the environment variable name |
|
||||||
|
|
||||||
[coloring]: /docs/configuration/colors
|
[coloring]: /docs/configuration/colors
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -23,7 +23,9 @@ Show the current timestamp.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- time_format: `string` - format to use, follows the [golang standard][format] - defaults to `15:04:05`
|
| Name | Type | Description |
|
||||||
|
| ------------- | -------- | ----------------------------------------------------------------------------- |
|
||||||
|
| `time_format` | `string` | format to use, follows the [golang standard][format] - defaults to `15:04:05` |
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -37,18 +39,20 @@ Show the current timestamp.
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Format`: `string` - The time format (set via `time_format`)
|
| Name | Type | Description |
|
||||||
- `.CurrentDate`: `time` - The time to display (testing purpose)
|
| -------------- | -------- | --------------------------------------- |
|
||||||
|
| `.Format` | `string` | The time format (set via `time_format`) |
|
||||||
|
| `.CurrentDate` | `time` | The time to display (testing purpose) |
|
||||||
|
|
||||||
## Standard time and date formats
|
## Syntax
|
||||||
|
|
||||||
- January 2, 2006 **Date**
|
- January 2, 2006 **Date**
|
||||||
- 01/02/06
|
- 01/02/06
|
||||||
- Jan-02-06
|
- Jan-02-06
|
||||||
- 15:04:05 **Time**
|
- 15:04:05 **Time**
|
||||||
- 3:04:05 PM
|
- 3:04:05 PM
|
||||||
- Jan _2 15:04:05 **Timestamp**
|
- Jan 2 15:04:05 **Timestamp**
|
||||||
- Jan _2 15:04:05.000000 **with microseconds**
|
- Jan 2 15:04:05.000000 **with microseconds**
|
||||||
- 2006-01-02T15:04:05-0700 **ISO 8601 (RFC 3339)**
|
- 2006-01-02T15:04:05-0700 **ISO 8601 (RFC 3339)**
|
||||||
- 2006-01-02
|
- 2006-01-02
|
||||||
- 15:04:05
|
- 15:04:05
|
||||||
|
@ -57,24 +61,27 @@ Show the current timestamp.
|
||||||
- Mon, 02 Jan 2006 15:04:05 MST 27e95cb
|
- Mon, 02 Jan 2006 15:04:05 MST 27e95cb
|
||||||
- Mon, 02 Jan 2006 15:04:05 -0700 **with numeric zone**
|
- Mon, 02 Jan 2006 15:04:05 -0700 **with numeric zone**
|
||||||
|
|
||||||
### The following predefined date and timestamp format constants are also available
|
### Formats
|
||||||
|
|
||||||
- ANSIC = "Mon Jan _2 15:04:05 2006"
|
The following predefined date and timestamp format constants are also available:
|
||||||
- UnixDate = "Mon Jan _2 15:04:05 MST 2006"
|
|
||||||
- RubyDate = "Mon Jan 02 15:04:05 -0700 2006"
|
| Name | Output |
|
||||||
- RFC822 = "02 Jan 06 15:04 MST"
|
| ------------- | ----------------------------------- |
|
||||||
- RFC822Z = "02 Jan 06 15:04 -0700"
|
| `ANSIC` | Mon Jan 2 15:04:05 2006 |
|
||||||
- RFC850 = "Monday, 02-Jan-06 15:04:05 MST"
|
| `UnixDate` | Mon Jan 2 15:04:05 MST 2006 |
|
||||||
- RFC1123 = "Mon, 02 Jan 2006 15:04:05 MST"
|
| `RubyDate` | Mon Jan 02 15:04:05 -0700 2006 |
|
||||||
- RFC1123Z = "Mon, 02 Jan 2006 15:04:05 -0700"
|
| `RFC822` | 02 Jan 06 15:04 MST |
|
||||||
- RFC3339 = "2006-01-02T15:04:05Z07:00"
|
| `RFC822Z` | 02 Jan 06 15:04 -0700 |
|
||||||
- RFC3339Nano = "2006-01-02T15:04:05.999999999Z07:00"
|
| `RFC850` | Monday, 02-Jan-06 15:04:05 MST |
|
||||||
- Kitchen = "3:04PM"
|
| `RFC1123` | Mon, 02 Jan 2006 15:04:05 MST |
|
||||||
// Useful time stamps.
|
| `RFC1123Z` | Mon, 02 Jan 2006 15:04:05 -0700 |
|
||||||
- Stamp = "Jan _2 15:04:05"
|
| `RFC3339` | 2006-01-02T15:04:05Z07:00 |
|
||||||
- StampMilli = "Jan _2 15:04:05.000"
|
| `RFC3339Nano` | 2006-01-02T15:04:05.999999999Z07:00 |
|
||||||
- StampMicro = "Jan _2 15:04:05.000000"
|
| `Kitchen` | 3:04PM |
|
||||||
- StampNano = "Jan _2 15:04:05.000000000"
|
| `Stamp` | Jan 2 15:04:05 |
|
||||||
|
| `StampMilli` | Jan 2 15:04:05.000 |
|
||||||
|
| `StampMicro` | Jan 2 15:04:05.000000 |
|
||||||
|
| `StampNano` | Jan 2 15:04:05.000000000 |
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
|
|
|
@ -24,16 +24,13 @@ see [the documentation][ui5-version-help]).
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- home_enabled: `boolean` - display the segment in the HOME folder or not - defaults to `false`
|
| Name | Type | Description |
|
||||||
- fetch_version: `boolean` - display the UI5 tooling version - defaults to `true`
|
| ---------------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
- missing_command_text: `string` - text to display when the java command is missing - defaults to empty
|
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` |
|
||||||
- display_mode: `string` - determines when the segment is displayed
|
| `fetch_version` | `boolean` | display the UI5 tooling version - defaults to `true` |
|
||||||
- `always`: the segment is always displayed
|
| `missing_command_text` | `string` | text to display when the java command is missing - defaults to empty |
|
||||||
- `files`: the segment is only displayed when `*ui5*.y(a)ml` file is present in the current folder
|
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*ui5*.y(a)ml` file is present in the current folder</li><li>`context`: the segment is only displayed when `*ui5*.y(a)ml` file is present in the current folder or it has been found in the parent folders (check up to 4 levels) (**default**) </li></ul> |
|
||||||
- `context`: (default) the segment is only displayed when `*ui5*.y(a)ml` file is present in the current folder
|
| `version_url_template` | `string` | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||||
or it has been found in the parent folders (check up to 4 levels)
|
|
||||||
- version_url_template: `string` - a go [text/template][go-text-template] [template][templates] that creates
|
|
||||||
the URL of the version info / release notes
|
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -47,12 +44,14 @@ the URL of the version info / release notes
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Full`: `string` - the full version
|
| Name | Type | Description |
|
||||||
- `.Major`: `string` - major number
|
| -------- | -------- | -------------------------------------------------- |
|
||||||
- `.Minor`: `string` - minor number
|
| `.Full` | `string` | the full version |
|
||||||
- `.Patch`: `string` - patch number
|
| `.Major` | `string` | major number |
|
||||||
- `.URL`: `string` - URL of the version info / release notes
|
| `.Minor` | `string` | minor number |
|
||||||
- `.Error`: `string` - error encountered when fetching the version string
|
| `.Patch` | `string` | patch number |
|
||||||
|
| `.URL` | `string` | URL of the version info / release notes |
|
||||||
|
| `.Error` | `string` | error encountered when fetching the version string |
|
||||||
|
|
||||||
[go-text-template]: https://golang.org/pkg/text/template/
|
[go-text-template]: https://golang.org/pkg/text/template/
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -34,10 +34,11 @@ The free tier for is sufficient. You'll find the API key in your profile setting
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- url: `string` - Your Wakatime [summaries][wk-summaries] URL, including the API key. Example above. You'll know this
|
| Name | Type | Description |
|
||||||
works if you can curl it yourself and a result. - defaults to ``
|
| ----- | -------- | --------------------------------------------------------------------------------------------------- |
|
||||||
- http_timeout: `int` - The default timeout for http request is 20ms. If no segment is shown, try increasing this timeout.
|
| `url` | `string` | Your Wakatime [summaries][wk-summaries] URL, including the API key. Example above. You'll know this |
|
||||||
- cache_timeout: `int` - The default timeout for request caching is 10m. A value of 0 disables the cache.
|
|
||||||
|
works if you can curl it yourself and a result. - defaults to `` |`http_timeout`|`int`|The default timeout for http request is 20ms. If no segment is shown, try increasing this timeout.| |`cache_timeout`|`int`|The default timeout for request caching is 10m. A value of 0 disables the cache.|
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -51,12 +52,16 @@ works if you can curl it yourself and a result. - defaults to ``
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.CummulativeTotal`: `wtTotals` - object holding total tracked time values
|
| Name | Type | Description |
|
||||||
|
| ------------------- | ---------- | ---------------------------------------- |
|
||||||
|
| `.CummulativeTotal` | `wtTotals` | object holding total tracked time values |
|
||||||
|
|
||||||
### wtTotals Properties
|
### wtTotals Properties
|
||||||
|
|
||||||
- `.Seconds`: `float64` - a number reprecenting the total tracked time in seconds
|
| Name | Type | Description |
|
||||||
- `.Text`: `string` - a string with human readable tracked time (eg: "2 hrs 30 mins")
|
| ---------- | --------- | --------------------------------------------------------------- |
|
||||||
|
| `.Seconds` | `float64` | a number reprecenting the total tracked time in seconds |
|
||||||
|
| `.Text` | `string` | a string with human readable tracked time (eg: "2 hrs 30 mins") |
|
||||||
|
|
||||||
[wt]: https://wakatime.com
|
[wt]: https://wakatime.com
|
||||||
[wk-summaries]: https://wakatime.com/developers#summaries
|
[wk-summaries]: https://wakatime.com/developers#summaries
|
||||||
|
|
|
@ -40,12 +40,14 @@ Currently only supports Windows and WSL. Pull requests for Darwin and Linux supp
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.SSID`: `string` - the SSID of the current wifi network
|
| Name | Type | Description |
|
||||||
- `.RadioType`: `string` - the radio type - _e.g. 802.11ac, 802.11ax, 802.11n, etc._
|
| ----------------- | -------- | --------------------------------------------------------------------- |
|
||||||
- `.Authentication`: `string` - the authentication type - _e.g. WPA2-Personal, WPA2-Enterprise, etc._
|
| `.SSID` | `string` | the SSID of the current wifi network |
|
||||||
- `.Channel`: `int` - the current channel number
|
| `.RadioType` | `string` | the radio type - _e.g. 802.11ac, 802.11ax, 802.11n, etc._ |
|
||||||
- `.ReceiveRate`: `int` - the receive rate (Mbps)
|
| `.Authentication` | `string` | the authentication type - _e.g. WPA2-Personal, WPA2-Enterprise, etc._ |
|
||||||
- `.TransmitRate`: `int` - the transmit rate (Mbps)
|
| `.Channel` | `int` | the current channel number |
|
||||||
- `.Signal`: `int` - the signal strength (%)
|
| `.ReceiveRate` | `int` | the receive rate (Mbps) |
|
||||||
|
| `.TransmitRate` | `int` | the transmit rate (Mbps) |
|
||||||
|
| `.Signal` | `int` | the signal strength (%) |
|
||||||
|
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -35,9 +35,10 @@ Supported registry key types:
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- path: `string` - registry path to the desired key using backslashes and with a valid root HKEY name.
|
| Name | Type | Description |
|
||||||
Ending path with \ will get the (Default) key from that path.
|
| ---------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
- fallback: `string` - the value to fall back to if no entry is found
|
| `path` | `string` | registry path to the desired key using backslashes and with a valid root HKEY name. Ending path with \ will get the (Default) key from that path |
|
||||||
|
| `fallback` | `string` | the value to fall back to if no entry is found |
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -51,6 +52,8 @@ Supported registry key types:
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- .Value: `string` - The result of your query, or fallback if not found.
|
| Name | Type | Description |
|
||||||
|
| ------ | -------- | --------------------------------------------------- |
|
||||||
|
| .Value | `string` | The result of your query, or fallback if not found. |
|
||||||
|
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -4,7 +4,7 @@ title: Withings
|
||||||
sidebar_label: Withings
|
sidebar_label: Withings
|
||||||
---
|
---
|
||||||
|
|
||||||
import WithingsConnect from '/img/withings.svg';
|
import WithingsConnect from "/img/withings.svg";
|
||||||
|
|
||||||
## What
|
## What
|
||||||
|
|
||||||
|
@ -44,11 +44,13 @@ Click the following link to connect with Withings:
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- access_token: `string` - token from Withings login, see login link in section above.
|
| Name | Type | Description |
|
||||||
- refresh_token: `string` - token from Withings login, see login link in section above.
|
| --------------- | -------- | ----------------------------------------------------------------------------------------------------------------- |
|
||||||
- expires_in: `int` - the default timeout of the token from the Withings login
|
| `access_token` | `string` | token from Withings login, see login link in section above. |
|
||||||
- http_timeout: `int` - how long do you want to wait before you want to see your prompt more than your Withings data? - defaults to 500ms
|
| `refresh_token` | `string` | token from Withings login, see login link in section above. |
|
||||||
- CacheTimeout: `int` in minutes - How long do you want your Withings data cached? - defaults to 5 min
|
| `expires_in` | `int` | the default timeout of the token from the Withings login |
|
||||||
|
| `http_timeout` | `int` | how long do you want to wait before you want to see your prompt more than your Withings data? - defaults to 500ms |
|
||||||
|
| `CacheTimeout` | `int` | in minutes - How long do you want your Withings data cached? - defaults to 5 min |
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -64,9 +66,11 @@ Click the following link to connect with Withings:
|
||||||
|
|
||||||
The properties below are available for use in your template
|
The properties below are available for use in your template
|
||||||
|
|
||||||
- `.Weight`: `float` - your last measured weight
|
| Name | Type | Description |
|
||||||
- `.SleepHours`: `string` - your last measured sleep SleepHours
|
| ------------- | -------- | ----------------------------------- |
|
||||||
- `.Steps`: `int` - your last measured steps
|
| `.Weight` | `float` | your last measured weight |
|
||||||
|
| `.SleepHours` | `string` | your last measured sleep SleepHours |
|
||||||
|
| `.Steps` | `int` | your last measured steps |
|
||||||
|
|
||||||
Now, go out and be active!
|
Now, go out and be active!
|
||||||
|
|
||||||
|
|
|
@ -32,10 +32,12 @@ Remote Control password.
|
||||||
|
|
||||||
## Properties
|
## Properties
|
||||||
|
|
||||||
- playing_icon: `string` - text/icon to show when playing - defaults to `\uE602 `
|
| Name | Type | Description |
|
||||||
- paused_icon: `string` - text/icon to show when paused - defaults to `\uF8E3 `
|
| -------------- | -------- | --------------------------------------------------------------------- |
|
||||||
- stopped_icon: `string` - text/icon to show when paused - defaults to `\uF04D `
|
| `playing_icon` | `string` | text/icon to show when playing - defaults to `\uE602 ` |
|
||||||
- api_url: `string` - the YTMDA Remote Control API URL- defaults to `http://127.0.0.1:9863`
|
| `paused_icon` | `string` | text/icon to show when paused - defaults to `\uF8E3 ` |
|
||||||
|
| `stopped_icon` | `string` | text/icon to show when paused - defaults to `\uF04D ` |
|
||||||
|
| `api_url` | `string` | the YTMDA Remote Control API URL- defaults to `http://127.0.0.1:9863` |
|
||||||
|
|
||||||
## Template ([info][templates])
|
## Template ([info][templates])
|
||||||
|
|
||||||
|
@ -49,11 +51,12 @@ Remote Control password.
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
- `.Status`: `string` - player status (`playing`, `paused`, `stopped`)
|
| Name | Type | Description |
|
||||||
- `.Artist`: `string` - current artist
|
| --------- | -------- | ---------------------------------------------- |
|
||||||
- `.Track`: `string` - current track
|
| `.Status` | `string` | player status (`playing`, `paused`, `stopped`) |
|
||||||
- `.Icon`: `string` - icon (based on `.Status`)
|
| `.Artist` | `string` | current artist |
|
||||||
|
| `.Track` | `string` | current track |
|
||||||
|
| `.Icon` | `string` | icon (based on `.Status`) |
|
||||||
|
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
||||||
[templates]: /docs/configuration/templates
|
[templates]: /docs/configuration/templates
|
||||||
|
|
|
@ -59,10 +59,10 @@ module.exports = {
|
||||||
"segments/brewfather",
|
"segments/brewfather",
|
||||||
"segments/cds",
|
"segments/cds",
|
||||||
"segments/command",
|
"segments/command",
|
||||||
"segments/crystal",
|
|
||||||
"segments/cf",
|
"segments/cf",
|
||||||
"segments/cftarget",
|
"segments/cftarget",
|
||||||
"segments/cmake",
|
"segments/cmake",
|
||||||
|
"segments/crystal",
|
||||||
"segments/dart",
|
"segments/dart",
|
||||||
"segments/dotnet",
|
"segments/dotnet",
|
||||||
"segments/executiontime",
|
"segments/executiontime",
|
||||||
|
@ -82,8 +82,8 @@ module.exports = {
|
||||||
"segments/lua",
|
"segments/lua",
|
||||||
"segments/nbgv",
|
"segments/nbgv",
|
||||||
"segments/nightscout",
|
"segments/nightscout",
|
||||||
"segments/npm",
|
|
||||||
"segments/node",
|
"segments/node",
|
||||||
|
"segments/npm",
|
||||||
"segments/nx",
|
"segments/nx",
|
||||||
"segments/os",
|
"segments/os",
|
||||||
"segments/owm",
|
"segments/owm",
|
||||||
|
|
|
@ -164,38 +164,78 @@ a.getStarted_Sjon {
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-theme="light"] .themedImage_ToTc {
|
[data-theme="light"] .themedImage_ToTc {
|
||||||
filter: invert(0%) sepia(8%) saturate(2885%) hue-rotate(67deg) brightness(84%) contrast(87%);
|
filter: invert(0%) sepia(8%) saturate(2885%) hue-rotate(67deg) brightness(84%)
|
||||||
|
contrast(87%);
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-theme="dark"] .themedImage_ToTc {
|
[data-theme="dark"] .themedImage_ToTc {
|
||||||
filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(226deg) brightness(102%) contrast(101%);
|
filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(226deg)
|
||||||
|
brightness(102%) contrast(101%);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Fonts */
|
/* Fonts */
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--ifm-font-family-monospace: "Inter";
|
--ifm-font-family-monospace: "Inter";
|
||||||
--ifm-font-family-base: "Inter"
|
--ifm-font-family-base: "Inter";
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
font-family: 'Fira Code', monospace;
|
font-family: "Fira Code", monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
code[class*="language-"], pre[class*="language-"] {
|
code[class*="language-"],
|
||||||
font-family: 'Fira Code', monospace;
|
pre[class*="language-"] {
|
||||||
|
font-family: "Fira Code", monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Dev settings */
|
/* Dev settings */
|
||||||
|
|
||||||
[data-theme="dark"] .themedImage_node_modules-\@docusaurus-theme-classic-lib-theme-ThemedImage-styles-module {
|
[data-theme="dark"]
|
||||||
filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(226deg) brightness(102%) contrast(101%);
|
.themedImage_node_modules-\@docusaurus-theme-classic-lib-theme-ThemedImage-styles-module {
|
||||||
|
filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(226deg)
|
||||||
|
brightness(102%) contrast(101%);
|
||||||
}
|
}
|
||||||
|
|
||||||
[data-theme="light"] .themedImage_node_modules-\@docusaurus-theme-classic-lib-theme-ThemedImage-styles-module {
|
[data-theme="light"]
|
||||||
filter: invert(0%) sepia(8%) saturate(2885%) hue-rotate(67deg) brightness(84%) contrast(87%);
|
.themedImage_node_modules-\@docusaurus-theme-classic-lib-theme-ThemedImage-styles-module {
|
||||||
|
filter: invert(0%) sepia(8%) saturate(2885%) hue-rotate(67deg) brightness(84%)
|
||||||
|
contrast(87%);
|
||||||
}
|
}
|
||||||
|
|
||||||
a.getStarted_src-pages-styles-module {
|
a.getStarted_src-pages-styles-module {
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
/* We need this to be able to use border-radius. */
|
||||||
|
border-collapse: separate;
|
||||||
|
|
||||||
|
/* Add a 1px border spacing for out box-shadow to fit into. Increase this if you want to increase the border width. */
|
||||||
|
border-spacing: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
table th,
|
||||||
|
table td {
|
||||||
|
/* Remove any borders from our stylesheet. */
|
||||||
|
border: 0;
|
||||||
|
|
||||||
|
/* Use the spread value on the box-shadow to set the border width. */
|
||||||
|
box-shadow: 0 0 0 1px #c8c9cc;
|
||||||
|
}
|
||||||
|
|
||||||
|
table th:first-child {
|
||||||
|
border-top-left-radius: 6.4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
table th:last-child {
|
||||||
|
border-top-right-radius: 6.4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
table tr:last-child td:first-child {
|
||||||
|
border-bottom-left-radius: 6.4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
table tr:last-child td:last-child {
|
||||||
|
border-bottom-right-radius: 6.4px;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue