Skip to content

Instantly share code, notes, and snippets.

@trtiger4520
Created October 23, 2022 23:32
Show Gist options
  • Save trtiger4520/44c46ff8ef632ee8b1fee1417f0a4e11 to your computer and use it in GitHub Desktop.
Save trtiger4520/44c46ff8ef632ee8b1fee1417f0a4e11 to your computer and use it in GitHub Desktop.
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "root",
"style": "plain",
"foreground": "#E06C75",
"properties": {
"root_icon": "root",
"prefix": "",
"postfix": " <#ffffff>in</> "
}
},
{
"type": "path",
"style": "plain",
"foreground": "#55B9C4",
"properties": {
"style": "folder",
"enable_hyperlink": true,
"prefix": "# "
}
},
{
"type": "git",
"style": "plain",
"foreground": "#C678DD",
"properties": {
"prefix": "<#ffffff>on</> ",
"fetch_status": true,
"template": "{{ .HEAD }}{{ if .Working.Changed }} \uEAC4 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uEB4B {{ .Staging.String }}{{ end }}"
}
},
{
"type": "node",
"style": "plain",
"foreground": "#98C379",
"properties": {
"display_version": true,
"prefix": "[\uF898 ",
"postfix": "] "
}
},
{
"foreground": "#7e60ec",
"properties": {
"fetch_version": true,
"prefix": "[.NET ",
"postfix": "] "
},
"template": "{{ .Full }}",
"style": "plain",
"type": "dotnet"
},
{
"foreground": "#1BD760",
"properties": {
"prefix": "",
"playing_icon": "\uF1BC ",
"paused_icon": "\uF8E3 ",
"stopped_icon": "\uF04D "
},
"style": "plain",
"type": "spotify"
},
{
"type": "exit",
"style": "plain",
"foreground": "#C94A16",
"properties": {
"prefix": " ",
"template": "x"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "#63F08C",
"properties": {
"prefix": "",
"text": "\u279C"
}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment