Skip to content

Instantly share code, notes, and snippets.

@joeblackwaslike
Created March 2, 2026 06:08
Show Gist options
  • Select an option

  • Save joeblackwaslike/14cdef84a255b7560cb597a8d0e7b82e to your computer and use it in GitHub Desktop.

Select an option

Save joeblackwaslike/14cdef84a255b7560cb597a8d0e7b82e to your computer and use it in GitHub Desktop.
oh-my-posh theme
# yaml-language-server: $schema=https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
version: 3
final_space: true
blocks:
- type: prompt
alignment: left
segments:
- type: session
template: "{{ .UserName }} "
foreground: lightYellow
style: plain
options:
cache_duration: none
- type: path
style: plain
template: "<#ffffff>in</> {{ .Path }} "
foreground: cyan
options:
cache_duration: none
mixed_threshold: 12
style: full
folder_icon: "\uf07b "
- type: git
style: plain
template: "<#ffffff>on</> {{ .HEAD }} {{ if .BranchStatus }}{{ .BranchStatus }}{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0}} \ueab3 {{ .StashCount }}{{ end }}{{ if gt .WorktreeCount 0}} \uf1bb {{ .WorktreeCount }}{{ end }}"
foreground: "#ff94df"
# template: "{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uF046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0}} \ueab3 {{ .StashCount }}{{ end }}{{ if gt .WorktreeCount 0}} \uf1bb {{ .WorktreeCount }}{{ end }}"
options:
branch_icon: "<#ff94df>\ue725 </>"
no_commits_icon: "\uf0c3 "
cache_duration: none
fetch_stash: true
fetch_status: true
fetch_push_status: true
fetch_upstream_icon: true
fetch_bare_info: true
display_status: true
display_upstream_icon: true
display_stash_count: true
source: cli
mapped_branches:
feat/*: "🚀 "
bug/*: "🐛 "
- type: python
style: plain
template: " \ue73c {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}({{ .Venv }}) {{ end }}{{ .Full }}{{ end }}"
foreground: "#FFD43B"
options:
cache_duration: none
- type: node
style: plain
template: " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}"
foreground: "#59C9A5"
options:
fetch_package_manager: true
npm_icon: " <#cc3a3a>\ue5fa</> "
yarn_icon: " <#348cba>\ue6a7</>"
- type: java
style: plain
foreground: "#007396"
template: " \ue738 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}"
- type: go
style: plain
foreground: "#00ADD8"
template: "\ue626 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}"
- type: ruby
style: plain
foreground: "#CC342D"
template: " \ue791 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}"
- type: rust
style: plain
foreground: "#B7410E"
template: " \ue7a8 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}"
- type: lua
style: plain
foreground: "#000080"
template: " \ue620 {{ .Full }}"
- type: mojo
style: plain
foreground: "#F70D1A"
template: " \U0001F525 {{ .Full }}"
- type: prompt
alignment: left
newline: true
segments:
- type: root
style: plain
template: "<parentBackground>\ue0b0</> \uf292 "
- type: session
style: plain
template: "{{ if .SSHSession }}\ueba9 {{ end }}{{ .HostName }} "
foreground: "#ffffff"
options:
cache_duration: none
- type: text
style: plain
template: ❯
foreground: lightGreen
options:
cache_duration: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment