From a31cbe4d7e7d234053009c736f2fdebb77b0871e Mon Sep 17 00:00:00 2001 From: pagedMov Date: Fri, 11 Oct 2024 21:50:44 -0400 Subject: [PATCH] Gen 392: added shell version to starship prompt --- glasshouse-desktop/home/starship.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/glasshouse-desktop/home/starship.nix b/glasshouse-desktop/home/starship.nix index 78f2ef1..fe6d1e8 100644 --- a/glasshouse-desktop/home/starship.nix +++ b/glasshouse-desktop/home/starship.nix @@ -6,11 +6,11 @@ enableZshIntegration = false; settings = { add_newline = true; - # right_format = ""; + right_format = "($custom)"; format = lib.concatStrings [ "($username)(bold white)($cmd_duration)($character)" - "($git_branch)($git_status)" + "($git_branch)($git_status)($rust)($nix-shell)" "($directory)" "$line_break[  ](bold #89b4fa)" ]; @@ -39,6 +39,7 @@ show_notifications = false; min_time_to_notify = 60000; }; + git_branch = { format = "\non [$symbol$branch](bold purple)"; symbol = " "; @@ -46,6 +47,13 @@ style = "bold purple"; }; + custom.shellver = { + command = "zsh --version"; + when = ''test $SHELL = "/run/current-system/sw/bin/zsh"''; + symbol = ""; + style = "bold magenta"; + }; + palette = "catppuccin_mocha"; } // builtins.fromTOML (builtins.readFile "${inputs.catppuccin-starship}/themes/mocha.toml"); };