Skip to content

Instantly share code, notes, and snippets.

@chaseholdren
Last active January 19, 2026 09:49
Show Gist options
  • Select an option

  • Save chaseholdren/1644ec45c93ebfd791f6c4bde3bbb6c4 to your computer and use it in GitHub Desktop.

Select an option

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 = "{{if and .Root (ne .UserName \"root\")}}(Admin){{end}}{{ if or .Segments.Session.SSHSession (eq .UserName \"root\") }}{{.UserName}}@{{.HostName}}{{ end }}{{ if .WSL}}[WSL-{{.OS}}] {{ end }} {{if .Segments.Git.RepoName}} {{ .Segments.Git.RepoName }}/{{ .Segments.Git.RelativeDir }} {{else}} {{if (eq .PWD \"~\")}}Home{{else}}{{.Folder}}{{end}} {{end}}"
final_space = true
version = 3
[palette]
pink = "#F5BDE6"
lavender = "#B7BDF8"
blue = "#0c7bbb"
white = "#FFFFFF"
text = "#494D64"
red = "#f1184c"
cloud-text-amazon = "#4285F4"
cloud-text-azure = "#4285F4"
cloud-text-gcp = "#4285F4"
cloud-text-firebase = "#FFA000"
kubernetes-text = "#FFBB00"
docker-text = "#FFBB00"
symbol-color = "#ffffff"
light-gray = "#575757"
gray = "#424242"
dark-gray = "#2D2D2D"
[[blocks]]
newline = true
alignment = "left"
type = "prompt"
[[blocks.segments]]
background = "p:blue"
foreground = "p:white"
powerline_symbol = ""
leading_diamond = ""
style = "diamond"
template = "{{.Icon}} "
type = "os"
[blocks.segments.properties]
windows = "⊞"
[[blocks.segments]]
background = "p:blue"
foreground = "p:white"
powerline_symbol = ""
style = "diamond"
template = "{{ if or .SSHSession .WSL }}{{ .UserName }}{{ if .WSL }}[WSL]{{ else }}@{{ .HostName }}{{ end }}{{ end }} "
type = "session"
[[blocks.segments]]
background = "p:pink"
foreground = "p:text"
style = "powerline"
type = "path"
exclude_folders = ["~/code/.*"]
[blocks.segments.properties]
style = "full"
[[blocks.segments]]
background = "p:pink"
foreground = "p:text"
alias = "REPO_LABEL"
powerline_symbol = ""
style = "powerline"
templates = [
" {{ if .Segments.Git.RepoName }}{{ .Segments.Git.UpstreamIcon }} {{ .Segments.Git.RepoName }}/{{ .Segments.Git.RelativeDir }}{{ end }}",
" {{.Folder}} ",
]
templates_logic = "first_match"
type = "text"
include_folders = ["~/code/.*"]
[[blocks.segments]]
background = "p:lavender"
foreground = "p:text"
style = "powerline"
powerline_symbol = ""
template = "{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}"
type = "git"
[blocks.segments.properties]
fetch_status = true
fetch_push_status = true
fetch_upstream_icon = true
native_fallback = true
branch_icon = " "
[transient_prompt]
background = "transparent"
foreground = "p:text"
template = '<p:dark-gray></><p:blue,p:dark-gray>{{ now | date "3:04:05PM"}} </><p:dark-gray,p:gray></><p:pink,p:gray>{{ .Segments.REPO_LABEL.Text }}{{ if .Segments.Contains "Path" }} {{ trimSuffix " " .Segments.Path.Path }}{{ end }}</><p:gray></> '
@chaseholdren
Copy link
Author

image

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