Last active
April 21, 2024 05:00
-
-
Save krymtkts/d320ff5ec30fa47b138c2df018f95423 to your computer and use it in GitHub Desktop.
My own oh-my-posh v3 theme.
This file contains 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 | |
version: 2 | |
console_title_template: "{{ if .Root }}Admin: {{ end }} {{ .Folder }}" | |
final_space: true | |
blocks: | |
# First line left. | |
- type: prompt | |
newline: true | |
alignment: left | |
segments: | |
- type: text | |
style: plain | |
- type: prompt | |
alignment: left | |
segments: | |
- type: os | |
background: "#002b36" | |
foreground: "#2aa198" | |
style: diamond | |
trailing_diamond: | |
template: "{{ if .WSL }} at {{ end }}{{ .Icon }} " | |
- type: root | |
background: "#002b36" | |
foreground: "#b58900" | |
style: diamond | |
trailing_diamond: | |
template: "" | |
- type: session | |
background: "#2aa198" | |
foreground: "#073642" | |
style: diamond | |
trailing_diamond: | |
properties: | |
display_host: false | |
template: " {{ .UserName }} " | |
- type: path | |
background: "#002b36" | |
foreground: "#839496" | |
properties: | |
style: mixed | |
style: diamond | |
template: "{{ .Path }} " | |
- type: git | |
background: "#859900" | |
foreground: "#002b36" | |
style: powerline | |
powerline_symbol: | |
properties: | |
fetch_stash_count: true | |
fetch_status: true | |
fetch_upstream_icon: true | |
fetch_worktree_count: true | |
github_icon: " " | |
bitbucket_icon: " " | |
no_commits_icon: " " | |
template: " {{ .UpstreamIcon }} {{ .HEAD }} {{ if .BranchStatus }}{{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0}} {{ .StashCount }}{{ end }}{{ if gt .WorktreeCount 0}} {{ .WorktreeCount }}{{ end }} " | |
- type: text | |
background: "#002b36" | |
foreground: "#d33682" | |
style: powerline | |
powerline_symbol: | |
background_templates: | |
- "{{ if gt .Code 0 }}#dc322f{{ end }}" | |
foreground_templates: | |
- "{{ if gt .Code 0 }}#002b36{{ end }}" | |
properties: | |
always_enabled: true | |
template: " {{ if gt .Code 0 }} {{ else }} {{ end }} " | |
# First line right. | |
- type: prompt | |
alignment: right | |
segments: | |
- type: shell | |
foreground: "#93a1a1" | |
style: diamond | |
template: " {{ .Name }}" | |
- type: time | |
background: "#002b36" | |
foreground: "#839496" | |
style: diamond | |
leading_diamond: | |
trailing_diamond: | |
properties: | |
time_format: 15:04:05 MST | |
template: "{{ .CurrentDate | date .Format }}" | |
- type: executiontime | |
background: "#073642" | |
foreground: "#839496" | |
style: diamond | |
properties: | |
always_enabled: true | |
template: " {{ .FormattedMs }}" | |
# Second line. | |
- type: prompt | |
newline: true | |
alignment: left | |
segments: | |
- type: text | |
foreground: "#b58900" | |
style: plain | |
template: ">" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment