made oh my posh way better

This commit is contained in:
2026-04-01 14:41:19 +01:00
parent 427e843daa
commit 59244870dc
3 changed files with 22 additions and 4 deletions

View File

@@ -17,6 +17,24 @@ final_space = true
alignment = 'left'
newline = true
[[blocks.segments]]
type = 'text'
style = 'plain'
foreground = '#89dceb' # Nix Blue
template = '{{ if hasPrefix "flake-" .Env.name }}󱄅 flake <#7f849c>|</> {{ end }}'
[[blocks.segments]] # Rust nix shell
type = 'text'
style = 'plain'
foreground = 'red'
template = '{{ if contains "rustshell-env" .Env.name }}🦀 rustproject <#7f849c>|</> {{ end }}'
[[blocks.segments]] # Python venv
type = 'text'
style = 'plain'
foreground = 'yellow'
template = '{{ if .Env.VIRTUAL_ENV }}🐍 venv <grey>|</> {{ end }}'
[[blocks.segments]]
template = '{{ .Path }}'
foreground = 'blue'
@@ -29,8 +47,8 @@ final_space = true
style = 'full'
[[blocks.segments]]
template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} <cyan>{{ if gt .Behind 0 }}{{ end }}{{ if gt .Ahead 0 }}{{ end }}</>'
foreground = 'p:grey'
template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}<yellow> *</>{{ end }} <cyan>{{ if gt .Behind 0 }}󰁅{{ end }}{{ if gt .Ahead 0 }}{{ end }}</>'
foreground = 'green'
background = 'transparent'
type = 'git'
style = 'plain'