Skip to content

Instantly share code, notes, and snippets.

@mhudasch
Created September 24, 2023 12:49
Show Gist options
  • Save mhudasch/e7c7e0ea564b85dd25c9811a68e3b4b5 to your computer and use it in GitHub Desktop.
Save mhudasch/e7c7e0ea564b85dd25c9811a68e3b4b5 to your computer and use it in GitHub Desktop.
oh-my-posh Settings
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#C50F1F",
"foreground": "#FFFFFF",
"style": "powerline",
"template": " \uf0e7 ",
"type": "root"
},
{
"background": "#1d2025",
"foreground": "#c9c9c9",
"style": "powerline",
"template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ",
"type": "os"
},
{
"type": "executiontime",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"background": "#1d2025",
"foreground": "#c9c9c9",
"template": "| \u2191{{ .FormattedMs }} ",
"properties": {
"threshold": 30,
"style": "austin"
}
},
{
"background": "#1d2025",
"foreground": "#c9c9c9",
"style": "powerline",
"template": "| {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }} / {{ .HostName }} ",
"type": "session"
},
{
"background": "#1d2025",
"foreground": "#c9c9c9",
"properties": {
"time_format": "02.01.2006 15:04:05"
},
"style": "powerline",
"template": "| {{ .CurrentDate | date .Format }} ",
"type": "time"
},
{
"background": "#1d2025",
"foreground": "#c9c9c9",
"style": "powerline",
"template": "| \uE70C {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }} ",
"type": "dotnet"
},
{
"background": "#1d2025",
"foreground": "#c9c9c9",
"style": "powerline",
"type": "node",
"display_mode": "files",
"fetch_package_manager": true,
"template": "| \uE718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ",
"properties": {
"display_package_manager": true,
"yarn_icon": " <#348cba></>",
"npm_icon": " <#cc3a3a></>"
}
},
{
"type": "exit",
"style": "diamond",
"background": "#1d2025",
"foreground": "#c9c9c9",
"foreground_templates": [
"{{ if gt .Code 0 }}#e91e63{{ end }}"
],
"leading_diamond": "",
"trailing_diamond": "\uE0B4",
"template": " ! ",
"properties": {
"always_enabled": false
}
}
],
"type": "prompt"
},
{
"alignment": "right",
"newline": false,
"segments": [
{
"background": "#1c232e",
"foreground": "#c9c9c9",
"properties": {
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true
},
"leading_diamond": "\uE0B6",
"trailing_diamond": "\uE0B4",
"style": "diamond",
"template": " <#F64D27>{{ .UpstreamIcon }}{{ .HEAD }}</>{{ .BranchStatus }}{{ if .Working.Changed }} \uF04f {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uF046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uF692 {{ .StashCount }}{{ end }} ",
"type": "git"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"background": "#1d2025",
"foreground": "#c9c9c9",
"properties": {
"folder_separator_icon": "\\",
"style": "full"
},
"style": "diamond",
"template": " <#e0bd21>\ue5ff</> {{ .Path }} ",
"type": "path"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "#ffffff",
"template": " > "
}
],
"type": "prompt"
}
],
"console_title_template": "{{ .Shell }} in {{ .Folder }}",
"final_space": true,
"osc99": true,
"version": 3
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment