From 2f3ac9861f197587b172576a9d23cf67d6bce7cc Mon Sep 17 00:00:00 2001 From: Caleb Braaten Date: Wed, 26 Nov 2025 22:55:17 -0800 Subject: [PATCH] Update shell theme to better communicate the current path and git repo we're in --- zsh/.config/oh-my-posh/theme.toml | 34 ++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/zsh/.config/oh-my-posh/theme.toml b/zsh/.config/oh-my-posh/theme.toml index a9a2d1c..62e3be6 100644 --- a/zsh/.config/oh-my-posh/theme.toml +++ b/zsh/.config/oh-my-posh/theme.toml @@ -4,6 +4,7 @@ final_space = true [palette] blue = '#8AADF4' lavender = '#B7BDF8' + teal = '#8BD5CA' os = '#ACB0BE' pink = '#F5BDE6' text = '#494D64' @@ -17,7 +18,8 @@ final_space = true leading_diamond = '' template = '{{ .UserName }}@{{ .HostName }}' foreground = 'p:text' - powerline_symbol = '' + powerline_symbol = '' + trailing_diamond = '' background = 'p:blue' type = 'session' style = 'diamond' @@ -25,13 +27,35 @@ final_space = true [blocks.segments.properties] cache_duration = 'none' - [[blocks.segments]] - template = ' {{ .Path }}' +[[blocks.segments]] + template = ' {{ .Segments.Git.RepoName }}' foreground = 'p:text' - powerline_symbol = '' + background = 'p:teal' + type = 'text' + style = 'diamond' + + [blocks.segments.properties] + cache_duration = 'none' + + [[blocks.segments]] + template = '{{ if .Segments.Git.RepoName }}{{ if eq .Segments.Git.Dir .PWD }}./{{ else if contains "/" .Segments.Git.RelativeDir }}.//{{ .Folder }}{{ else }}./{{ .Folder }}{{ end }}{{ end }}' + foreground = 'p:text' + powerline_symbol = '' + background = 'p:pink' + type = 'text' + style = 'powerline' + + [blocks.segments.properties] + cache_duration = 'none' + + [[blocks.segments]] + template = '{{ if not .Segments.Git.RepoName }} {{ .Path }}{{ end }}' + foreground = 'p:text' + powerline_symbol = '' + trailing_diamond = '' background = 'p:pink' type = 'path' - style = 'powerline' + style = 'diamond' [blocks.segments.properties] cache_duration = 'none'