1
0
Fork 0

starship: use right prompt

This commit is contained in:
Daniel Kempkens 2024-04-11 10:02:08 +02:00
parent e17e8d19f3
commit 5c90dfb6d1
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -9,8 +9,14 @@
settings = {
add_newline = true;
character = {
success_symbol = "[󰘧](bold green)";
error_symbol = "[󰘧](bold red)";
};
cmd_duration = {
format = "\\[[ $duration]($style)\\]";
style = "yellow";
format = "[ $duration]($style)";
};
docker_context = {
@ -102,6 +108,9 @@
username = {
format = "\\[[ $user]($style)\\]";
};
format = "$all";
right_format = "$cmd_duration";
};
};
@ -109,5 +118,9 @@
function starship_transient_prompt_func
starship module character
end
function starship_transient_rprompt_func
starship module cmd_duration
end
'';
}