Skip to content

Instantly share code, notes, and snippets.

@duartenina
Last active May 14, 2023 19:16
Show Gist options
  • Save duartenina/07684e83a28ece0ef0b0d8a7653da600 to your computer and use it in GitHub Desktop.
Save duartenina/07684e83a28ece0ef0b0d8a7653da600 to your computer and use it in GitHub Desktop.
OhMyPosh Profile
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 2,
"final_space": true,
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "os",
"style": "diamond",
"foreground": "#f2f3f8",
"background": "#d72700",
"leading_diamond": "\u256d\u2500\ue0b2",
"template": " {{ .Icon }} ",
"properties": {
"alpine": "\uf300",
"arch": "\uf303",
"centos": "\uf304",
"debian": "\uf306",
"elementary": "\uf309",
"fedora": "\uf30a",
"gentoo": "\uf30d",
"linux": "\ue712",
"macos": "\ue711",
"manjaro": "\uf312",
"mint": "\uf30f",
"opensuse": "\uf314",
"raspbian": "\uf315",
"ubuntu": "\uf31c",
"windows": "\ue70f"
}
},
{
"type": "session",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "#e4e4e4",
"background": "#4e4e4e",
"template": " {{ .UserName }} "
},
{
"type": "python",
"style": "powerline",
"background": "#5aff57",
"foreground": "#111111",
"powerline_symbol": "\ue0b0",
"properties": {
"display_mode": "environment",
"fetch_virtual_env": true,
"home_enabled": true
},
"template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} "
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "#f2f3f8",
"background": "#004257",
"template": " {{ .Path }} ",
"properties": {
"folder_icon": "\u2026",
"folder_separator_icon": " <transparent>\ue0b1</> ",
"max_depth": 4,
"style": "agnoster_short"
}
},
{
"type": "git",
"style": "diamond",
"foreground": "#ffffff",
"background": "#378504",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#a97400{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#54433a{{ end }}",
"{{ if gt .Ahead 0 }}#744d89{{ end }}",
"{{ if gt .Behind 0 }}#744d89{{ end }}"
],
"leading_diamond": "<transparent,background>\ue0b0</>",
"trailing_diamond": "\ue0b0",
"template": " {{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} <transparent>\ue0b1</> <#121318>\uf044 {{ .Working.String }}</>{{ end }}{{ if .Staging.Changed }} <transparent>\ue0b1</> <#121318>\uf046 {{ .Staging.String }}</>{{ end }}{{ if gt .StashCount 0 }} <transparent>\ue0b1</> <#121318>\ueb4b {{ .StashCount }}</>{{ end }} ",
"properties": {
"branch_gone_icon": "\ueab8",
"branch_icon": "\uf418 ",
"branch_identical_icon": "\uf444",
"branch_max_length": 25,
"fetch_stash_count": true,
"fetch_status": true
}
}
],
"newline": true
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "executiontime",
"style": "powerline",
"powerline_symbol": "\ue0b2",
"invert_powerline": true,
"foreground": "#f2f3f8",
"background": "#ffffff",
"template": " \ueba2 {{ .FormattedMs }} ",
"properties": {
"always_enabled": true,
"style": "austin"
}
},
{
"type": "time",
"style": "diamond",
"powerline_symbol": "\ue0b2",
"invert_powerline": true,
"foreground": "#f2f3f8",
"background": "#000000",
"trailing_diamond": "\ue0b0",
"template": " \uf073 {{ .CurrentDate | date .Format }} ",
"properties": {
"time_format": "15:04:05"
}
}
]
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "text",
"style": "plain",
"foreground": "#d72700",
"template": "\u2570\u2500 {{ if .Root }}#{{else}}${{end}}"
}
],
"newline": true
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment