32 lines
488 B
Nix
32 lines
488 B
Nix
|
{ concatStrings }:
|
||
|
|
||
|
{
|
||
|
add_newline = true;
|
||
|
|
||
|
format = concatStrings [
|
||
|
"$directory"
|
||
|
"$git_branch"
|
||
|
"$git_commit"
|
||
|
"$git_state"
|
||
|
"$git_metrics"
|
||
|
"$git_status"
|
||
|
"$nix_shell"
|
||
|
"$cmd_duration"
|
||
|
"$jobs"
|
||
|
"$line_break"
|
||
|
"$character"
|
||
|
];
|
||
|
|
||
|
character = {
|
||
|
success_symbol = "[➜](bold green)";
|
||
|
error_symbol = "[➜](bold red)";
|
||
|
};
|
||
|
|
||
|
git_commit.commit_hash_length = 6;
|
||
|
|
||
|
directory = {
|
||
|
truncate_to_repo = true;
|
||
|
truncation_length = 6;
|
||
|
};
|
||
|
}
|