enable transient prompts in starship

This commit is contained in:
Noah Masur
2025-07-26 15:59:57 -04:00
parent 6a9d1c14a7
commit 45aa5d01e5

View File

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