From 65830be8f7c249f173dd2dfbd15c0b2c1dbab326 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Fri, 16 Jan 2026 01:05:04 +0530 Subject: Showing nix shell module in starship config --- modules/tools/starship/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'modules/tools/starship') diff --git a/modules/tools/starship/default.nix b/modules/tools/starship/default.nix index b778b3c..ca37428 100644 --- a/modules/tools/starship/default.nix +++ b/modules/tools/starship/default.nix @@ -13,10 +13,10 @@ let mkSegment = content: ''[┄\[](red)[${content}]($style)[\]](red)''; in { - add_newline = true;# Single line layout + add_newline = true; format = '' -[╭─\[](red)$hostname[@](red)$username[\]](red)$directory$git_branch$git_status +[╭─\[](red)$hostname[@](red)$username[\]](red)$directory$git_branch$git_status$nix_shell [╰─](red)$status$character ''; @@ -32,7 +32,7 @@ hostname = { ssh_only = false; style = "green"; - format = "[$hostname]($style)"; + format = "[$hostname]($style)"; }; directory = { @@ -51,6 +51,11 @@ style = "cyan"; }; + nix_shell = { + format = mkSegment "$symbol $state( \($name\))"; + symbol = "󱄅"; + }; + status = { disabled = false; format = ''${mkSegment "$symbol $status"}[┄─](red)''; -- cgit v1.2.3