Update shell prompt

This commit is contained in:
Riley Apeldoorn 2023-06-06 16:07:28 +02:00
parent a21a4d5e26
commit f25e2d197e

View file

@ -69,13 +69,30 @@ in with lib; {
programs.starship = { programs.starship = {
enable = true; enable = true;
settings = { settings = {
add_newline = false;
format = '' format = ''
$directory$git_branch$cmd_duration$sudo $username at $hostname // $directory$git_branch $character
$character
''; '';
character = { character = {
success_symbol = "[>](bold green)"; success_symbol = "[>](bold #1fed71)";
error_symbol = "[](bold red)"; error_symbol = "[!](bold #ff8426)";
};
username = {
show_always = true;
format = "[$user]($style)";
style_user = "bold #40de46";
};
hostname = {
ssh_only = false;
format = "[$hostname]($style)";
style = "bold #1fb8ff";
};
directory = {
format = "[$path]($style)";
};
git_branch = {
format = " :: [$symbol$branch]($style)";
style = "bold #c745ff";
}; };
}; };
}; };