root version of jsl-zsh
This commit is contained in:
@@ -50,5 +50,65 @@
|
||||
'';
|
||||
};
|
||||
}).wrapper;
|
||||
|
||||
packages.starship-ascii = (inputs.wrappers.wrapperModules.starship.apply {
|
||||
inherit pkgs;
|
||||
settings = {
|
||||
add_newline = false;
|
||||
|
||||
format = "$username$hostname$directory$git_branch$git_status$cmd_duration$line_break$character";
|
||||
|
||||
username = {
|
||||
show_always = true;
|
||||
format = "[$user]($style)";
|
||||
style_user = "bold blue";
|
||||
style_root = "bold red";
|
||||
};
|
||||
|
||||
hostname = {
|
||||
disabled = false;
|
||||
ssh_only = false;
|
||||
format = "[@$hostname]($style) ";
|
||||
style = "bold blue";
|
||||
};
|
||||
|
||||
directory = {
|
||||
truncation_length = 3;
|
||||
truncate_to_repo = true;
|
||||
format = "[ in $path]($style) ";
|
||||
style = "bold cyan";
|
||||
};
|
||||
|
||||
git_branch = {
|
||||
symbol = "on ";
|
||||
format = "[$symbol$branch]($style) ";
|
||||
style = "bold yellow";
|
||||
};
|
||||
|
||||
git_status = {
|
||||
format = "([$all_status$ahead_behind]($style) )";
|
||||
style = "bold red";
|
||||
ahead = "ahead:$count ";
|
||||
behind = "behind:$count ";
|
||||
diverged = "diverged:$ahead_count/$behind_count ";
|
||||
up_to_date = "";
|
||||
};
|
||||
|
||||
cmd_duration = {
|
||||
min_time = 2000;
|
||||
show_notifications = false;
|
||||
format = "took [$duration]($style) ";
|
||||
style = "bold green";
|
||||
};
|
||||
|
||||
line_break.disabled = false;
|
||||
|
||||
character = {
|
||||
success_symbol = "[\\$](bold green) ";
|
||||
error_symbol = "[\\$](bold red) ";
|
||||
vicmd_symbol = "[\\$](bold yellow) ";
|
||||
};
|
||||
};
|
||||
}).wrapper;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user