46 lines
809 B
Nix
46 lines
809 B
Nix
{ lib, ... }:
|
|
{
|
|
programs.starship = {
|
|
enable = true;
|
|
enableTransience = true;
|
|
settings = {
|
|
add_newline = false;
|
|
format = lib.concatStrings [
|
|
"$username"
|
|
"$hostname"
|
|
"$directory"
|
|
"$git_branch"
|
|
"$git_status"
|
|
"$git_metrics"
|
|
"$git_state"
|
|
"$fill"
|
|
"$nix_shell"
|
|
"$shell"
|
|
"$line_break"
|
|
"$character"
|
|
];
|
|
|
|
fill = {
|
|
symbol = " ";
|
|
};
|
|
|
|
directory = {
|
|
style = "blue";
|
|
};
|
|
|
|
git_branch = {
|
|
format = "[$branch(:$remote_branch)](white) ";
|
|
};
|
|
|
|
git_status = {
|
|
style = "cyan";
|
|
};
|
|
|
|
nix_shell = {
|
|
symbol = "nix";
|
|
heuristic = true;
|
|
format = "[$symbol ($state $name )](red)";
|
|
};
|
|
};
|
|
};
|
|
}
|