Last active
June 10, 2025 02:32
-
-
Save jasonm23/3e6a47d393c226724a93392e6cefeac9 to your computer and use it in GitHub Desktop.
Pwsh prompt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"foreground": "#26C6DA", | |
"style": "diamond", | |
"template": "[{{ .UserName }}@{{ .HostName }}] ", | |
"type": "session" | |
}, | |
{ | |
"foreground": "#0fc4a9", | |
"style": "powerline", | |
"template": "[ \u279c \ue235 ({{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Major }}.{{ .Minor }}{{ end }})]", | |
"type": "python" | |
}, | |
{ | |
"foreground": "#00E7DD", | |
"foreground_templates": [ | |
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#00CCDD{{ end }}", | |
"{{ if gt .Ahead 0 }}#66c60c{{ end }}", | |
"{{ if gt .Behind 0 }}#F48000{{ end }}" | |
], | |
"properties": { | |
"fetch_status": true, | |
"fetch_upstream_icon": true | |
}, | |
"style": "plain", | |
"template": "[ {{ .UpstreamIcon }} {{ .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 }} {{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }} {{ end }} ]", | |
"type": "git" | |
} | |
], | |
"type": "prompt" | |
}, | |
{ | |
"alignment": "right", | |
"segments": [ | |
{ | |
"background": "#6CA35E", | |
"foreground": "#ffffff", | |
"leading_diamond": " \ue0b6 ", | |
"style": "diamond", | |
"template": " \ue718 {{ .Full }} ", | |
"trailing_diamond": " \ue0b4 ", | |
"type": "node" | |
}, | |
{ | |
"background": "#4c1f5e", | |
"foreground": "#ffffff", | |
"leading_diamond": " \ue0b6 ", | |
"style": "diamond", | |
"template": " \ue738 {{ .Full }} ", | |
"trailing_diamond": " \ue0b4 ", | |
"type": "java" | |
}, | |
{ | |
"properties": { | |
"always_enabled": true | |
}, | |
"style": "plain", | |
"template": " {{ if gt .Code 0 }}<#ff7700> \uf00d </>{{ else }}<#23d1ab> \uf42e </>{{ end }} ", | |
"type": "status" | |
}, | |
{ | |
"foreground": "#0c7d94", | |
"properties": { | |
"threshold": 10 | |
}, | |
"style": "plain", | |
"template": "took \uf252 {{ .FormattedMs }} ", | |
"type": "executiontime" | |
}, | |
{ | |
"foreground": "#098789", | |
"properties": { | |
"time_format": "15:04:05" | |
}, | |
"style": "plain", | |
"template": " {{ .CurrentDate | date .Format }} \uf017 ", | |
"type": "time" | |
} | |
], | |
"type": "prompt" | |
}, | |
{ | |
"alignment": "left", | |
"newline": true, | |
"segments": [ | |
{ | |
"foreground": "#77E4F7", | |
"properties": { | |
"style": "full" | |
}, | |
"style": "plain", | |
"template": "[{{ .Path }}]", | |
"type": "path" | |
}, | |
{ | |
"foreground": "#0a7c86", | |
"style": "plain", | |
"template": "\n", | |
"type": "text" | |
} | |
], | |
"type": "prompt" | |
} | |
], | |
"version": 2 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json | |
final_space: true | |
blocks: | |
- alignment: left | |
segments: | |
- foreground: '#26C6DA' | |
style: diamond | |
template: '[{{ .UserName }}@{{ .HostName }}] ' | |
type: session | |
- foreground: '#0fc4a9' | |
style: powerline | |
template: >- | |
[ ➜ ({{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} | |
{{ end }}{{ .Major }}.{{ .Minor }}{{ end }})] | |
type: python | |
- foreground: '#00E7DD' | |
foreground_templates: | |
- '{{ if and (gt .Ahead 0) (gt .Behind 0) }}#00CCDD{{ end }}' | |
- '{{ if gt .Ahead 0 }}#66c60c{{ end }}' | |
- '{{ if gt .Behind 0 }}#F48000{{ end }}' | |
properties: | |
fetch_status: true | |
fetch_upstream_icon: true | |
style: plain | |
template: >- | |
[ {{ .UpstreamIcon }} {{ .HEAD }} {{if .BranchStatus }} {{ | |
.BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ | |
.Working.String }} {{ end }}{{ if and (.Working.Changed) | |
(.Staging.Changed) }} | {{ end }} {{ if .Staging.Changed }} {{ | |
.Staging.String }} {{ end }} {{ if gt .StashCount 0 }} {{ | |
.StashCount }} {{ end }} ] | |
type: git | |
type: prompt | |
- alignment: right | |
segments: | |
- background: '#6CA35E' | |
foreground: '#ffffff' | |
leading_diamond: ' ' | |
style: diamond | |
template: ' {{ .Full }} ' | |
trailing_diamond: ' ' | |
type: node | |
- background: '#4c1f5e' | |
foreground: '#ffffff' | |
leading_diamond: ' ' | |
style: diamond | |
template: ' {{ .Full }} ' | |
trailing_diamond: ' ' | |
type: java | |
- properties: | |
always_enabled: true | |
style: plain | |
template: ' {{ if gt .Code 0 }}<#ff7700> </>{{ else }}<#23d1ab> </>{{ end }} ' | |
type: status | |
- foreground: '#0c7d94' | |
properties: | |
threshold: 10 | |
style: plain | |
template: 'took {{ .FormattedMs }} ' | |
type: executiontime | |
- foreground: '#098789' | |
properties: | |
time_format: '15:04:05' | |
style: plain | |
template: ' {{ .CurrentDate | date .Format }} ' | |
type: time | |
type: prompt | |
- alignment: left | |
newline: true | |
segments: | |
- foreground: '#77E4F7' | |
properties: | |
style: full | |
style: plain | |
template: '[{{ .Path }}]' | |
type: path | |
- foreground: '#0a7c86' | |
style: plain | |
template: |+ | |
type: text | |
type: prompt | |
version: 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment