Skip to content

Instantly share code, notes, and snippets.

@chaseholdren
Last active January 31, 2024 22:49
Show Gist options
  • Save chaseholdren/1644ec45c93ebfd791f6c4bde3bbb6c4 to your computer and use it in GitHub Desktop.
Save chaseholdren/1644ec45c93ebfd791f6c4bde3bbb6c4 to your computer and use it in GitHub Desktop.
oh-my-posh theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"console_title_template": "{{.UserName}}@{{.HostName}} in {{.PWD}}",
"blocks": [
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#E06C75",
"style": "plain",
"template": "{{ .UserName }}@{{ .HostName }}{{ if .WSL }}[WSL]{{ end }} ",
"type": "text"
},
{
"foreground": "#55B9C4",
"properties": {
"style": "agnoster_full"
},
"style": "plain",
"template": "{{ .Path }} ",
"type": "path"
},
{
"foreground": "#C94A16",
"style": "plain",
"template": "x ",
"type": "status"
},
{
"foreground": "#C678DD",
"properties": {
"fetch_status": true
},
"style": "plain",
"template": "{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }} ",
"type": "git"
},
{
"type": "gcp",
"foreground": "#ffffff",
"background": "#47888d",
"template": "{{ if .Env.CLOUDSDK_ACTIVE_CONFIG_NAME }}  {{.Project}} :: {{.Account}} {{ end }}"
},
{
"foreground": "#63F08C",
"style": "plain",
"template": "{{ if .Env.CLOUDSDK_ACTIVE_CONFIG_NAME }} {{ end }}\u279c ",
"type": "text"
}
],
"type": "prompt"
}
],
"version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment