aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar@proton.me>2026-01-16 01:05:04 +0530
committerArpit Chakladar <arpitchakladar@proton.me>2026-01-16 01:05:04 +0530
commit65830be8f7c249f173dd2dfbd15c0b2c1dbab326 (patch)
treebb9264bfdda401c41e63d642e730b7aef6ef298a
parentae402b98d4182263352ac4acd8ea6f7420a0205e (diff)
downloadhome-manager-config-65830be8f7c249f173dd2dfbd15c0b2c1dbab326.tar.gz
home-manager-config-65830be8f7c249f173dd2dfbd15c0b2c1dbab326.zip
Showing nix shell module in starship config
-rw-r--r--modules/tools/starship/default.nix11
1 files changed, 8 insertions, 3 deletions
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)'';