palette/home-manager/starship.nix
2024-04-28 23:09:27 +03:00

42 lines
1 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.

{pkgs, ...}: {
programs.starship.enable = true;
programs.starship.enableFishIntegration = true;
programs.starship.settings = {
battery.disabled = false;
battery.charging_symbol = " ";
time = {
disabled = false;
format = "🕙[$time ]($style)";
style = "bold #C51E3A"; # Cardinal red
};
hostname = {
format = "[$hostname ]($style)";
style = "bold #4CBB17"; # Kelly green
ssh_only = false;
};
username = {
format = "[$user@]($style)";
style_user = "bold #AFDBF5"; # Uranian blue
show_always = true;
};
git_branch = {
symbol = "";
};
cmd_duration = {
format = "[$duration ]($style)";
show_notifications = true;
style = "bold #E0115F"; # Ruby
};
python.format = "[$symbol$pyenv_prefix($version)(($virtualenv)) ]($style)";
rust.format = "[$symbol($version) ]($style)";
format = "$username$hostname$battery$time$jobs$git_branch$python$rust$cmd_duration$directory
:> ";
};
}