Skip to content

Instantly share code, notes, and snippets.

@jaycollett
Created January 28, 2025 18:21
Show Gist options
  • Select an option

  • Save jaycollett/3dc7093501b377f49154659541f20c18 to your computer and use it in GitHub Desktop.

Select an option

Save jaycollett/3dc7093501b377f49154659541f20c18 to your computer and use it in GitHub Desktop.
Custom Oh-My-Posh Prompt (custom.omp.json)
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"type": "text",
"template": "\n",
"style": "plain"
},
{
"background": "#44475a",
"foreground": "#f8f8f2",
"leading_diamond": "",
"style": "diamond",
"template": "  {{ .UserName }} ",
"type": "session"
},
{
"background": "#264653",
"foreground": "#f8f8f2",
"powerline_symbol": "",
"properties": {
"style": "folder"
},
"style": "powerline",
"template": "  {{ .Path }} ",
"type": "path"
},
{
"background": "#2a9d8f",
"foreground": "#f8f8f2",
"powerline_symbol": "",
"properties": {
"branch_icon": " ",
"fetch_stash_count": true,
"fetch_status": false,
"fetch_upstream_icon": true
},
"style": "powerline",
"template": "  ({{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }}  {{ .StashCount }}{{ end }}) ",
"type": "git"
},
{
"background": "#1e6091",
"foreground": "#f8f8f2",
"powerline_symbol": "",
"template": "  Docker: {{ .Context }} ",
"type": "docker"
},
{
"background": "#1d3557",
"foreground": "#f1fa8c",
"powerline_symbol": "",
"style": "powerline",
"template": "  {{ .CurrentDate | date \"15:04:05\" }} ",
"type": "time"
}
],
"type": "prompt"
},
{
"alignment": "left",
"segments": [
{
"background": "#282a36",
"foreground": "#f1fa8c",
"invert_powerline": true,
"leading_diamond": "",
"style": "diamond",
"template": "  {{.Profile}}{{if .Region}}@{{.Region}}{{end}} ",
"trailing_diamond": "",
"type": "aws"
}
],
"type": "rprompt"
}
],
"final_space": true,
"version": 3
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment