nixos

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit bf7cad7db75c319ac7f91c8602183f404095d594
parent 1ab77f0e341a707308f8f465855180f0f4a93b0f
Author: Toni Brown <me@tb148.net>
Date:   Thu, 12 Mar 2026 12:46:28 +0800

change shell integration

Diffstat:
Mconfig.nu | 1+
Mstarship.nix | 7+++++++
2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/config.nu b/config.nu @@ -21,6 +21,7 @@ $env.TRANSIENT_PROMPT_COMMAND = ^starship module character $env.TRANSIENT_PROMPT_MULTILINE_INDICATOR = " " $env.EDITOR = 'hx' +$env.SHELL = 'nu' $env.UID = $'(id -u)' alias zed = zeditor alias zn = zeditor -n diff --git a/starship.nix b/starship.nix @@ -6,6 +6,7 @@ lib.concatStrings [ "$username" "$line_break" + "$shell" "$character" ]; right_format = "$git_branch$directory"; @@ -16,6 +17,12 @@ style_root = "bold fg:mauve"; show_always = true; }; + shell = { + disabled = false; + format = "[$indicator]($style)"; + style = "fg:overlay1"; + nu_indicator = ""; + }; character = { success_symbol = "[>](bold fg:green)"; error_symbol = "[>](bold fg:red)";