mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-29 01:20:14 +00:00
enable transient prompts in starship
This commit is contained in:
@ -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 ' '";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user