Skip to content

Instantly share code, notes, and snippets.

@mmcguff
Last active January 24, 2024 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmcguff/e1caab5a764382f0a5483c6dd1e72222 to your computer and use it in GitHub Desktop.
Save mmcguff/e1caab5a764382f0a5483c6dd1e72222 to your computer and use it in GitHub Desktop.
mmcguff.omp.json
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#333333",
"foreground": "#ff0000",
"leading_diamond": "\ue0b6",
"style": "diamond",
"template": "{{ .Icon }} {{ .HostName }}",
"type": "os"
},
{
"background": "#ff0000",
"foreground": "#000000",
"powerline_symbol": "\ue0b0",
"properties": {
"folder_icon": "\uf115",
"folder_separator_icon": "\\",
"home_icon": "\uf7db",
"style": "folder"
},
"style": "powerline",
"template": " \uf07b \uf553 {{ .Path }} ",
"type": "path"
},
{
"background": "#f9eb78",
"foreground": "#111111",
"powerline_symbol": "\ue0b0",
"properties": {
"branch_icon": " \ue0a0 ",
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true
},
"style": "powerline",
"template": " \u279c ({{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }}) ",
"type": "git"
},
{
"foreground": "#ffffff",
"background": "#43853D",
"powerline_symbol": "\ue0b0",
"style": "powerline",
"template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ",
"type": "node"
},
{
"type": "gcp",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#47888d",
"template": "  {{.Project}} :: {{.Account}} "
},
{
"type": "go",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#7FD5EA",
"template": " ‭ﳑ {{ .Full }} "
},
// {
// "foreground": "#ffffff",
// "background": "#F79400",
// "powerline_symbol": "\uE0B0",
// "properties": {
// "display_default": true
// },
// "style": "powerline",
// "template": " \uE7AD {{.Profile}}{{if .Region}}@{{.Region}}{{end}}",
// "type": "aws"
// },
// {
// "background": "#1B89E2",
// "foreground": "#ffffff",
// "powerline_symbol": "\uE0B0",
// "style": "powerline",
// "template": " \uFD31 {{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}} ",
// "type": "kubectl"
// },
{
"background": "#333333",
"foreground": "#ff0000",
"powerline_symbol": "\ue0b0",
"properties": {
"always_enabled": true
},
"style": "powerline",
"template": " \ufbab {{ .FormattedMs }} ",
"type": "executiontime"
},
{
"background": "#2e9599",
"background_templates": [
"{{ if gt .Code 0 }}red{{ end }}"
],
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"properties": {
"always_enabled": true
},
"style": "diamond",
"template": " {{ if gt .Code 0 }}\uf525{{ else }}\uf469{{ end }}",
"trailing_diamond": "\ue0b4",
"type": "exit"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#cd5e42",
"style": "plain",
"template": "\ue3bf ",
"type": "root"
},
{
"foreground": "#ff0000",
"style": "plain",
"template": "<##ff0000><b>\u26a1</b></><b>{{ .UserName }}</b><##ff0000>\u276f</><##ff0000>\u276f</>",
"type": "text"
}
],
"type": "prompt"
}
],
"final_space": true,
"version": 2
}
@mmcguff
Copy link
Author

mmcguff commented Jan 24, 2024

My personally tuned oh my posh configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment