Skip to content

Instantly share code, notes, and snippets.

@metashx
Last active August 3, 2021 21:03
Show Gist options
  • Save metashx/e1ec9892f63b1dd9589fbea615f0c047 to your computer and use it in GitHub Desktop.
Save metashx/e1ec9892f63b1dd9589fbea615f0c047 to your computer and use it in GitHub Desktop.
Custom oh-my-posh theme based on 'ys' for WSL shells
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "white",
"properties": {
"text": ""
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "time",
"style": "plain",
"foreground": "darkGray",
"properties": {
"prefix": "[",
"postfix": "] ",
"time_format": "15:04"
}
},
{
"type": "session",
"style": "plain",
"properties": {
"user_info_separator": "<darkGray>@</>",
"prefix": "",
"user_color": "cyan",
"host_color": "cyan"
}
},
{
"type": "envvar",
"style": "plain",
"foreground": "cyan",
"properties": {
"prefix": "<darkGray>(</>",
"postfix": "<darkGray>) </>",
"var_name": "WSL_DISTRO_NAME"
}
},
{
"type": "path",
"style": "plain",
"foreground": "lightYellow",
"properties": {
"prefix": "<darkGray>in </>",
"style": "full"
}
},
{
"type": "git",
"style": "plain",
"properties": {
"prefix": "<darkGray>on</> <white>git:</>"
}
},
{
"type": "exit",
"style": "plain",
"foreground": "red",
"properties": {
"prefix": " C:",
"always_numeric": true
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "lightRed",
"properties": {
"prefix": "",
"text": "$",
"postfix": ""
}
},
{
"type": "root",
"style": "plain",
"foreground": "red",
"properties": {
"root_icon": "#"
}
}
]
}
],
"final_space": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment