nix/modules/home/common/starship.nix
cartierf89 b5dfc7998d nix os
2025-08-19 11:52:43 -04:00

45 lines
781 B
Nix
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
config,
pkgs,
...
}:
{
home.packages = with pkgs; [
starship
];
# Starship prompt configuration (equivalent to your starship-prompt.sh)
programs.starship = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
settings = {
character = {
success_symbol = "[ ](bold green)";
error_symbol = "[ ](bold red)";
};
directory = {
truncation_length = 9;
};
php = {
format = "[$symbol($version )]($style)";
};
golang = {
format = "[$symbol($version )]($style)";
};
nodejs = {
format = "[$symbol($version )]($style)";
};
bun = {
format = "[$symbol($version )]($style)";
};
};
};
}