Skip to content

Instantly share code, notes, and snippets.

@Akxe
Created June 3, 2024 15:44
Show Gist options
  • Save Akxe/6400053075bac849f4ef0ed4e8f1dd70 to your computer and use it in GitHub Desktop.
Save Akxe/6400053075bac849f4ef0ed4e8f1dd70 to your computer and use it in GitHub Desktop.
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 2,
"final_space": true,
"console_title_template": "{{.UserName}}@{{.HostName}} in {{ .PWD }}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "os",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "#fff",
"background": "#003543",
"template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}}",
"properties": {
"windows": "\ue62a "
}
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "#003544",
"background": "#0087D8",
"template": " \ue5ff {{ .Path }} ",
"properties": {
"folder_separator_icon": "/",
"style": "full"
}
},
{
"type": "git",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "#193549",
"background": "#d2ff5e",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#ff9248{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#f26d50{{ end }}",
"{{ if gt .Ahead 0 }}#89d1dc{{ end }}",
"{{ if gt .Behind 0 }}#f17c37{{ end }}"
],
"template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ",
"properties": {
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true
}
},
{
"type": "time",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "#fff",
"background": "#003543",
"template": "<#fff> \uf64f </>{{ .CurrentDate | date .Format }} "
},
{
"type": "executiontime",
"style": "diamond",
"foreground": "#ffffff",
"background": "#83769c",
"trailing_diamond": "\ue0b4",
"template": " \ufbab {{ .FormattedMs }}\u2800",
"properties": {
"always_enabled": true
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "root",
"style": "plain",
"foreground": "#fff",
"template": " \u26a1 "
},
{
"type": "text",
"style": "plain",
"foreground": "#f1184c",
"template": "🦄 "
}
],
"newline": true
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment