system/home/shell/prompt/starship/config.nix

35 lines
547 B
Nix
Raw Normal View History

2022-08-24 14:02:45 +03:00
{ concatStrings }:
{
add_newline = true;
format = concatStrings [
"$directory"
"$git_branch"
"$git_commit"
"$git_state"
"$git_metrics"
"$git_status"
2022-08-24 15:07:45 +03:00
"$shlvl"
2022-08-24 14:02:45 +03:00
"$nix_shell"
"$cmd_duration"
"$jobs"
"$line_break"
"$character"
];
character = {
success_symbol = "[](bold green)";
error_symbol = "[](bold red)";
};
git_commit.commit_hash_length = 6;
2022-08-24 15:07:45 +03:00
shlvl = {
disabled = false;
format = "[$symbol$shlvl]($style) ";
symbol = " ";
threshold = 3;
2022-08-24 14:02:45 +03:00
};
}