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 = {
enable = true;
settings = {
add_newline = false;
format = ''
$directory$git_branch$cmd_duration$sudo
$character
$username at $hostname // $directory$git_branch $character
'';
character = {
success_symbol = "[>](bold green)";
error_symbol = "[](bold red)";
success_symbol = "[>](bold #1fed71)";
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";
};
};
};