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 ' '"; + }; + }; + }; }; }