From 45aa5d01e581cdf5a96040fe1f21b2ca192fa97a Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sat, 26 Jul 2025 15:59:57 -0400 Subject: [PATCH] enable transient prompts in starship --- .../modules/nmasur/presets/programs/starship.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/platforms/home-manager/modules/nmasur/presets/programs/starship.nix b/platforms/home-manager/modules/nmasur/presets/programs/starship.nix index 281064d..6965822 100644 --- a/platforms/home-manager/modules/nmasur/presets/programs/starship.nix +++ b/platforms/home-manager/modules/nmasur/presets/programs/starship.nix @@ -19,6 +19,7 @@ in enable = true; enableFishIntegration = true; enableBashIntegration = true; + enableTransience = true; # Replace previous prompts with custom string settings = { add_newline = false; # Don't print new line at the start of the prompt format = lib.concatStrings [ @@ -80,6 +81,17 @@ in }; }; }; + programs.fish = { + functions = { + # Adjust the prompt in previous commands + starship_transient_prompt_func = { + body = "echo '$ '"; + }; + starship_transient_rprompt_func = { + body = "echo ' '"; + }; + }; + }; }; }