This commit is contained in:
Chris Kruining 2025-03-23 17:05:45 +01:00
parent 32f2213e88
commit ba45da3b8a
Signed by: chris
SSH key fingerprint: SHA256:nG82MUfuVdRVyCKKWqhY+pCrbz9nbX6uzUns4RKa1Pg
4 changed files with 36 additions and 42 deletions

View file

@ -11,24 +11,15 @@ in
config = mkIf config.modules.${user}.shell.toolset.starship.enable {
home-manager.users.${user}.programs.starship = {
enable = true;
settings = let
# inherit (config.lib.stylix.colors) cyan red magenta yellow green blue;
cyan = "#00ffff";
red = "#ff0000";
magenta = "#ff00ff";
yellow = "#ffff00";
green = "#00ff00";
blue = "#0000ff";
in {
settings = {
scan_timeout = 10;
add_newline = true;
line_break.disabled = true;
format = "$username$hostname$nix_shell$git_branch$git_commit$git_state$git_status$directory$jobs$cmd_duration$character";
username = {
style_user = "${cyan} bold";
style_root = "${red} bold";
style_user = "cyan bold";
style_root = "red bold";
format = "[$user]($style) ";
disabled = false;
show_always = true;
@ -37,7 +28,7 @@ in
hostname = {
ssh_only = false;
ssh_symbol = "🌐 ";
format = "on [$hostname](bold ${red}) ";
format = "on [$hostname](bold red) ";
trim_at = ".local";
disabled = false;
};
@ -45,28 +36,28 @@ in
nix_shell = {
symbol = " ";
format = "[$symbol$name]($style) ";
style = "${magenta} bold";
style = "magenta bold";
};
git_branch = {
only_attached = true;
format = "[$symbol$branch]($style) ";
symbol = "";
style = "${yellow} bold";
style = "yellow bold";
};
git_commit = {
only_detached = true;
format = "[$hash]($style) ";
style = "${yellow} bold";
style = "yellow bold";
};
git_state = {
style = "${magenta} bold";
style = "magenta bold";
};
git_status = {
style = "${green} bold";
style = "green bold";
};
directory = {
@ -76,16 +67,16 @@ in
cmd_duration = {
format = "[$duration]($style) ";
style = "${blue}";
style = "blue";
};
jobs = {
style = "${green} bold";
style = "green bold";
};
character = {
success_symbol = "[\\$](${green}} bold)";
error_symbol = "[\\$](${red} bold)";
success_symbol = "[\\$](green bold)";
error_symbol = "[\\$](red bold)";
};
};
};