mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-12 14:04:05 -08:00
parent
170e5ac9e5
commit
cbf8a31e72
|
@ -18,14 +18,14 @@ the segment property value will be used instead. In case you want to use the glo
|
||||||
it with `.$` to reference it directly.
|
it with `.$` to reference it directly.
|
||||||
|
|
||||||
| Name | Type | Description |
|
| Name | Type | Description |
|
||||||
| --------------- | --------- | ----------------------------------------------------------------- |
|
| --------------- | --------- | ------------------------------------------------------------------- |
|
||||||
| `.Root` | `boolean` | is the current user root/admin or not |
|
| `.Root` | `boolean` | is the current user root/admin or not |
|
||||||
| `.PWD` | `string` | the current working directory (`~` for `$HOME`) |
|
| `.PWD` | `string` | the current working directory (`~` for `$HOME`) |
|
||||||
| `.AbsolutePWD` | `string` | the current working directory (unaltered) |
|
| `.AbsolutePWD` | `string` | the current working directory (unaltered) |
|
||||||
| `.Folder` | `string` | the current working folder |
|
| `.Folder` | `string` | the current working folder |
|
||||||
| `.Shell` | `string` | the current shell name |
|
| `.Shell` | `string` | the current shell name |
|
||||||
| `.ShellVersion` | `string` | the current shell version |
|
| `.ShellVersion` | `string` | the current shell version |
|
||||||
| `.SHLVL` | `int` | the current shell level |
|
| `.SHLVL` | `int` | the current shell level (not supported in [powershell][pwsh-shlvl]) |
|
||||||
| `.UserName` | `string` | the current user name |
|
| `.UserName` | `string` | the current user name |
|
||||||
| `.HostName` | `string` | the host name |
|
| `.HostName` | `string` | the host name |
|
||||||
| `.Code` | `int` | the last exit code |
|
| `.Code` | `int` | the last exit code |
|
||||||
|
@ -271,3 +271,4 @@ This can be used in templates and icons/text inside your config.
|
||||||
[templates]: /docs/configuration/segment
|
[templates]: /docs/configuration/segment
|
||||||
[regexpms]: https://pkg.go.dev/regexp#Regexp.MatchString
|
[regexpms]: https://pkg.go.dev/regexp#Regexp.MatchString
|
||||||
[regexpra]: https://pkg.go.dev/regexp#Regexp.ReplaceAllString
|
[regexpra]: https://pkg.go.dev/regexp#Regexp.ReplaceAllString
|
||||||
|
[pwsh-shlvl]: https://github.com/JanDeDobbeleer/oh-my-posh/issues/5069
|
||||||
|
|
Loading…
Reference in a new issue