2022-03-09 23:55:02 +03:00
|
|
|
{...}: {
|
2021-05-07 01:02:40 +03:00
|
|
|
programs.starship = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
2022-05-13 17:26:10 +03:00
|
|
|
format = "$shell$shlvl$nix_shell@ $directory$character";
|
2021-05-07 01:02:40 +03:00
|
|
|
add_newline = false;
|
|
|
|
character = {
|
|
|
|
success_symbol = "[>](bold green)";
|
|
|
|
error_symbol = "[>](bold red)";
|
|
|
|
};
|
2022-05-03 23:26:40 +03:00
|
|
|
shell.disabled = false;
|
2022-05-03 23:34:41 +03:00
|
|
|
shlvl = {
|
|
|
|
disabled = false;
|
|
|
|
symbol = "shlvl ";
|
|
|
|
format = "on [$symbol$shlvl]($style) ";
|
|
|
|
};
|
2022-05-03 23:36:32 +03:00
|
|
|
nix_shell.format = "via [$name]($style) ";
|
2021-05-07 01:02:40 +03:00
|
|
|
directory = {
|
|
|
|
truncation_length = 2;
|
|
|
|
truncate_to_repo = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|