diff options
| -rw-r--r-- | modules/tools/starship/default.nix | 11 |
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)''; |
