nixos-config/home-manager/shell/starship.nix

74 lines
1.8 KiB
Nix
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ ... }:
{
programs.starship.enable = true;
programs.starship.settings = {
format = "$directory$nix_shell$all$fill$cmd_duration$status$jobs$time$line_break$character";
fill.symbol = " ";
add_newline = true;
battery.disabled = true;
character =
let char = ""; charVi = "";
in {
success_symbol = "[${char}](bold bright-green)";
error_symbol = "[${char}](bold bright-red)";
vicmd_symbol = "[${charVi}](bold bright-green)";
};
directory = {
truncation_length = 6;
truncation_symbol = " /";
read_only = " ";
read_only_style = "cyan";
before_repo_root_style = "bold blue";
repo_root_style = "bold blue";
};
nix_shell = {
format = "[$symbol \\($state\\) ]($style)";
symbol = "";
};
jobs = {
format = "[$symbol$number]($style) ";
symbol = " ";
style = "green";
};
status = {
disabled = false;
pipestatus = true;
format = "[\\($int\\)]($style) ";
pipestatus_segment_format = "$int";
pipestatus_format = "[\\($pipestatus\\)]($style) ";
};
time = {
disabled = false;
format = "[$time]($style) ";
style = "dimmed cyan";
};
git_branch.style = "bold bright-green";
git_status = {
format = "$stashed$ahead_behind$conflicted$deleted$renamed$staged$modified$untracked";
conflicted = "[~$count ](bright-red)";
ahead = "[$count ](bright-cyan)";
behind = "[$count ](bright-cyan)";
diverged = "[ ](bright-cyan)";
untracked = "[?$count ](bright-cyan)";
stashed = "[\\$$count ](bright-cyan)";
modified = "[!$count ](yellow)";
staged = "[+$count ](yellow)";
renamed = "[»$count ](yellow)";
deleted = "[$count ](bright-red)";
};
};
}