mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 13:04:04 -08:00
c8fb6322eb
resolves #3101
74 lines
3.7 KiB
Plaintext
74 lines
3.7 KiB
Plaintext
---
|
|
id: os
|
|
title: OS
|
|
sidebar_label: OS
|
|
---
|
|
|
|
## What
|
|
|
|
Display OS specific info - defaults to Icon.
|
|
|
|
## Sample Configuration
|
|
|
|
```json
|
|
{
|
|
"type": "os",
|
|
"style": "plain",
|
|
"foreground": "#26C6DA",
|
|
"background": "#546E7A",
|
|
"template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}}\uE0B1",
|
|
"properties": {
|
|
"macos": "mac"
|
|
}
|
|
}
|
|
```
|
|
|
|
## Properties
|
|
|
|
| Name | Type | Description |
|
|
| --------------------- | --------- | ------------------------------------------------------------------------- |
|
|
| `macos` | `string` | the string to use for macOS - defaults to `\uF179` |
|
|
| `linux` | `string` | the icon to use for Linux - defaults to `\uF17C` |
|
|
| `windows` | `string` | the icon to use for Windows - defaults to `\uE62A` |
|
|
| `display_distro_name` | `boolean` | display the distro name or icon (for WSL and Linux) - defaults to `false` |
|
|
| `alma` | `string` | the icon to use for Alma - defaults to `\uF31D` |
|
|
| `alpine` | `string` | the icon to use for Alpine - defaults to `\uF300` |
|
|
| `aosc` | `string` | the icon to use for Aosc - defaults to `\uF301` |
|
|
| `arch` | `string` | the icon to use for Arch - defaults to `\uF303` |
|
|
| `centos` | `string` | the icon to use for Centos - defaults to `\uF304` |
|
|
| `coreos` | `string` | the icon to use for Coreos - defaults to `\uF305` |
|
|
| `debian` | `string` | the icon to use for Debian - defaults to `\uF306` |
|
|
| `devuan` | `string` | the icon to use for Devuan - defaults to `\uF307` |
|
|
| `raspbian` | `string` | the icon to use for Raspbian - defaults to `\uF315` |
|
|
| `elementary` | `string` | the icon to use for Elementary - defaults to `\uF309` |
|
|
| `fedora` | `string` | the icon to use for Fedora - defaults to `\uF30a` |
|
|
| `gentoo` | `string` | the icon to use for Gentoo - defaults to `\uF30d` |
|
|
| `mageia` | `string` | the icon to use for Mageia - defaults to `\uF310` |
|
|
| `manjaro` | `string` | the icon to use for Manjaro - defaults to `\uF312` |
|
|
| `mint` | `string` | the icon to use for Mint - defaults to `\uF30e` |
|
|
| `nixos` | `string` | the icon to use for Nixos - defaults to `\uF313` |
|
|
| `opensuse` | `string` | the icon to use for Opensuse - defaults to `\uF314` |
|
|
| `redhat` | `string` | the icon to use for Redhat - defaults to `\uF316` |
|
|
| `rocky` | `string` | the icon to use for Rocky - defaults to `\uF32B` |
|
|
| `sabayon` | `string` | the icon to use for Sabayon - defaults to `\uF317` |
|
|
| `slackware` | `string` | the icon to use for Slackware - defaults to `\uF319` |
|
|
| `ubuntu` | `string` | the icon to use for Ubuntu - defaults to `\uF31b` |
|
|
|
|
## Template ([info][templates])
|
|
|
|
:::note default template
|
|
|
|
```template
|
|
{{ if .WSL }}WSL at {{ end }}{{.Icon}}
|
|
```
|
|
|
|
:::
|
|
|
|
### Properties
|
|
|
|
| Name | Type | Description |
|
|
| ------- | -------- | ----------- |
|
|
| `.Icon` | `string` | the OS icon |
|
|
|
|
[templates]: /docs/configuration/templates
|