starship: use right prompt
This commit is contained in:
parent
e17e8d19f3
commit
5c90dfb6d1
1 changed files with 14 additions and 1 deletions
|
@ -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
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue