Skip to content

Instantly share code, notes, and snippets.

@araxis
Last active November 19, 2023 12:27
Show Gist options
  • Save araxis/b0dc605d0c855626bed6a21c0cc7b52a to your computer and use it in GitHub Desktop.
Save araxis/b0dc605d0c855626bed6a21c0cc7b52a to your computer and use it in GitHub Desktop.
Oh My Posh -them-min
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"palette": {
"git": "#fffb38",
"folder" : "#FFA500",
"dotnet" : "#7b68ee",
"command_line" : "#11b347",
"memory" : "#f39843",
"date" : "#007ACC",
"os" : "#26C6DA",
"user" : "#ffffff",
"execution_time" : "#4c1f5e"
},
"blocks": [
{
"alignment": "left",
"type": "prompt",
"segments": [
{
"type": "os",
"style": "plain",
"foreground": "p:os",
"template": "{{ if .WSL }}WSL at {{ end }}{{.Icon}} "
},
{
"type": "text",
"style": "plain",
"foreground": "p:user",
"template": "{{ .UserName }} "
},
{
"foreground": "p:folder",
"properties": {
"folder_separator_icon": "",
"home_icon": "~",
"style": "folder"
},
"style": "plain",
"template":" {{ .Path }}",
"type": "path"
},
{
"foreground": "p:git",
"properties": {
"branch_max_length": 25,
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true,
"branch_icon": ""
},
"style": "plain",
"template": " {{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }}  {{ .StashCount }}{{ end }}",
"type": "git"
},
{
"type": "dotnet",
"style": "plain",
"foreground": "p:dotnet",
"template": "  {{ if .Unsupported }}{{ else }}{{ .Full }}{{ end }}",
"properties": {
"fetch_version": true
}
}
]
},
{
"alignment": "right",
"type": "prompt",
"segments": [
{
"foreground": "p:execution_time",
"properties": {
"always_enabled": true
},
"style": "plain",
"template": " {{ .FormattedMs }} ",
"type": "executiontime"
},
{
"type": "sysinfo",
"foreground": "p:memory",
"template": "  {{ round .PhysicalPercentUsed .Precision }}% ",
"properties": {
"precision": 2
},
"style": "plain"
},
{
"foreground": "p:date",
"template": " {{ .CurrentDate | date .Format }} ",
"properties": {
"time_format": "15:04:05"
},
"style": "plain",
"type": "time"
}
]
},
{
"alignment": "left",
"type": "prompt",
"newline": true,
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "p:command_line",
"template": "╰"
}
]
}
],
"console_title_template": "{{ .Folder }}",
"final_space": true,
"version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment