Skip to content

Instantly share code, notes, and snippets.

@naramdash
Created March 17, 2022 04:25
Show Gist options
  • Save naramdash/3665e34219f53144e74bba50e07c3679 to your computer and use it in GitHub Desktop.
Save naramdash/3665e34219f53144e74bba50e07c3679 to your computer and use it in GitHub Desktop.
my oh-my-posh theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "right",
"segments": [
{
"foreground": "#007acc",
"properties": {
"template": "{{ .Name }}"
},
"style": "plain",
"type": "shell"
},
{
"foreground": "#ff8080",
"properties": {
"template": " <#757575,>as</> root"
},
"style": "plain",
"type": "root"
},
{
"foreground": "#689f38",
"properties": {
"template": " <#757575,>|</> {{ .CurrentDate | date .Format }}",
"time_format": "15:04:05"
},
"style": "plain",
"type": "time"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#757575",
"properties": {
"template": "\u250c {{ .UserName }}@{{ .HostName }} "
},
"style": "plain",
"type": "session"
},
{
"background": "#91ddff",
"foreground": "#100e23",
"powerline_symbol": "\ue0b0",
"properties": {
"style": "folder",
"template": " {{ .Path }} "
},
"style": "powerline",
"type": "path"
},
{
"background": "#95ffa4",
"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 }}#c5b6ad{{ end }}"
],
"foreground": "#100e23",
"powerline_symbol": "\ue0b0",
"properties": {
"branch_ahead_icon": "\u2191",
"branch_behind_icon": "\u2193",
"branch_gone": "\u2262",
"branch_icon": "\ue0a0 ",
"branch_identical_icon": "\u2261",
"cherry_pick_icon": "\u2713 ",
"commit_icon": "\u25b7 ",
"fetch_stash_count": true,
"fetch_status": true,
"merge_icon": "\u25f4 ",
"no_commits_icon": "[no commits]",
"rebase_icon": "\u2c62 ",
"tag_icon": "\u25b6 ",
"template": " {{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} \u2502{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} {{ .StashCount }}{{ end }} "
},
"style": "powerline",
"type": "git"
},
{
"background": "#6CA35E",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"properties": {
"fetch_version": true,
"template": " \uf898 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} "
},
"style": "powerline",
"type": "node"
},
{
"type": "dotnet",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#000000",
"background": "#00ffff",
"properties": {
"template": " \uE77F {{ .Full }} "
}
},
{
"background": "#ff8080",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"properties": {
"template": " error "
},
"style": "powerline",
"type": "exit"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#757575",
"properties": {
"template": "\u2514 "
},
"style": "plain",
"type": "text"
},
{
"foreground": "#ffffff",
"properties": {
"template": "$"
},
"style": "plain",
"type": "text"
}
],
"type": "prompt"
}
],
"final_space": true,
"osc99": true,
"version": 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment