From 59244870dc04789750cf2f0cc8c3613d6912523d Mon Sep 17 00:00:00 2001 From: voidarc Date: Wed, 1 Apr 2026 14:41:19 +0100 Subject: [PATCH] made oh my posh way better --- .config/nvim | 2 +- .config/oh-my-posh/zen.toml | 22 ++++++++++++++++++++-- .nixos | 2 +- 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/.config/nvim b/.config/nvim index f5b4ee85..3a71912e 160000 --- a/.config/nvim +++ b/.config/nvim @@ -1 +1 @@ -Subproject commit f5b4ee85a40e13ca9cbcea1787e15f35f70d4730 +Subproject commit 3a71912e229b34e5458b4154bfa97c196dcc1be3 diff --git a/.config/oh-my-posh/zen.toml b/.config/oh-my-posh/zen.toml index 6e094f2a..7c737f45 100644 --- a/.config/oh-my-posh/zen.toml +++ b/.config/oh-my-posh/zen.toml @@ -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 | {{ 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 }} {{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}' - foreground = 'p:grey' + template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }} *{{ end }} {{ if gt .Behind 0 }}󰁅{{ end }}{{ if gt .Ahead 0 }}{{ end }}' + foreground = 'green' background = 'transparent' type = 'git' style = 'plain' diff --git a/.nixos b/.nixos index 8ca322be..45497790 160000 --- a/.nixos +++ b/.nixos @@ -1 +1 @@ -Subproject commit 8ca322be98574c4a6ea9610f03bc6cc1e9d02f68 +Subproject commit 454977900ed473bdfca4114f0160266035080df8