Skip to content

Instantly share code, notes, and snippets.

@ulyssesronquillo
Last active February 11, 2024 13:40
Show Gist options
  • Save ulyssesronquillo/d66cfea9a266692e40f4aa19b06ccf9c to your computer and use it in GitHub Desktop.
Save ulyssesronquillo/d66cfea9a266692e40f4aa19b06ccf9c to your computer and use it in GitHub Desktop.
oh-my-posh-prompt
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"palette": {
"white": "#FFFFFF",
"black": "#000000",
"bg1": "#274472",
"bg2": "#41729F",
"bg3": "#5885AF",
"bg4": "#C3E0E5",
"bg5": "#CAB29F"
},
"blocks": [
{
"alignment": "left",
"segments": [
{
"type": "text",
"style": "diamond",
"leading_diamond": "\ue0b6",
"foreground": "p:white",
"background": "p:black",
"template": "{{ if .Env.PNPPSHOST }} \uf8c5 {{ .Env.PNPPSHOST }} {{ end }}"
},
{
"type": "text",
"style": "powerline",
"foreground": "p:white",
"background": "p:black",
"powerline_symbol": "\ue0b0",
"template": "{{ if .Env.PNPPSSITE }} \uf2dd {{ .Env.PNPPSSITE }}{{ end }}"
},
{
"type": "text",
"style": "diamond",
"trailing_diamond": "\ue0b4",
"foreground": "p:white",
"background": "p:black",
"template": "{{ if .Env.PNPPSSITE }}\u00A0{{ end }}"
},
{
"type": "executiontime",
"style": "diamond",
"powerline_symbol": "",
"foreground": "p:white",
"background": "p:black",
"template": " {{ .FormattedMs }} ",
"trailing_diamond": "\ue0b0",
"properties": {
"threshold": 500,
"style": "austin",
"always_enabled": true
}
}
],
"type": "rprompt"
},
{
"alignment": "left",
"segments": [
{
"background": "p:bg1",
"foreground": "p:white",
"properties": {
"time_format": "3:04 PM"
},
"style": "diamond",
"template": " \ue641 {{ .CurrentDate | date .Format }} ",
"trailing_diamond": "\ue0b0",
"type": "time"
},
{
"background": "p:bg2",
"foreground": "p:black",
"style": "diamond",
"template": " \u272a {{ .UserName }}@{{ .HostName }} ",
"trailing_diamond": "\ue0b0",
"type": "session"
},
{
"background": "p:bg3",
"foreground": "p:black",
"powerline_symbol": "\ue0b0",
"properties": {
"folder_icon": "\uf115",
"folder_separator_icon": " \ue0b1 ",
"home_icon": "\ueb06",
"style": "agnoster"
},
"style": "diamond",
"template": " {{ .Path }} ",
"trailing_diamond": "\ue0b0",
"type": "path"
},
{
"background": "p:bg4",
"foreground": "p:black",
"powerline_symbol": "\ue0b0",
"properties": {
"branch_icon": "",
"fetch_stash_count": true,
"fetch_status": false,
"fetch_upstream_icon": true
},
"style": "diamond",
"template": " \u279c ({{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }}) ",
"trailing_diamond": "\ue0b0",
"type": "git"
},
{
"type": "python",
"style": "diamond",
"powerline_symbol": "",
"background": "p:bg4",
"foreground": "p:black",
"template": "  {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ",
"trailing_diamond": "\ue0b0"
},
{
"type": "terraform",
"style": "powerline",
"powerline_symbol": "",
"background": "p:bg4",
"foreground": "p:black",
"template": " terraform: {{.WorkspaceName}}"
}
],
"type": "prompt"
}
],
"final_space": true,
"version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment