Harald Hoyer
ffed5d5394
Replaced the bash indicator icon in the Starship configuration to ensure consistency with the updated icon set. This improves visual alignment with the theme and enhances readability.
44 lines
883 B
Nix
44 lines
883 B
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib) mkEnableOption mkIf;
|
|
|
|
cfg = config.metacfg.cli-apps.starship;
|
|
in
|
|
{
|
|
options.metacfg.cli-apps.starship = {
|
|
enable = mkEnableOption "starship";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
home.packages = with pkgs; [
|
|
(pkgs.nerdfonts.override {
|
|
fonts = [
|
|
"FiraCode"
|
|
"DroidSansMono"
|
|
"JetBrainsMono"
|
|
];
|
|
})
|
|
];
|
|
programs.starship = {
|
|
enable = true;
|
|
settings = {
|
|
shell.disabled = false;
|
|
shell.fish_indicator = "";
|
|
shell.bash_indicator = "";
|
|
shell.unknown_indicator = "";
|
|
container.format = "[\\[$name\\]]($style) ";
|
|
git_status = {
|
|
ahead = "⇡\${count}";
|
|
diverged = "⇕⇡\${ahead_count}⇣\${behind_count}";
|
|
behind = "⇣\${count}";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|