nixos-config/modules/home/starship.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

2023-11-06 23:17:45 +01:00
{ lib, inputs, ... }:
2023-11-06 22:48:30 +01:00
{
2023-11-05 11:40:44 +01:00
programs.starship = {
enable = true;
2023-11-06 21:54:14 +01:00
2023-11-06 22:04:45 +01:00
enableBashIntegration = true;
enableZshIntegration = true;
enableNushellIntegration = true;
2023-11-06 21:54:14 +01:00
2023-11-06 22:04:45 +01:00
settings = {
2023-11-12 17:40:02 +01:00
right_format = "$cmd_duration";
2023-11-12 17:38:31 +01:00
2023-11-06 23:38:38 +01:00
directory = {
2023-11-07 00:19:06 +01:00
format = "[ ](bold #89b4fa)[ $path ]($style)";
2023-11-07 00:16:29 +01:00
style = "bold #b4befe";
2023-11-06 23:38:38 +01:00
};
character = {
2023-11-07 00:08:44 +01:00
success_symbol = "[ ](bold #89b4fa)[ ](bold green)";
error_symbol = "[ ](bold #89b4fa)[ ](bold red)";
2023-11-06 23:45:05 +01:00
# error_symbol = "[ ](bold #89dceb)[ ✗](bold red)";
2023-11-06 23:38:38 +01:00
};
2023-11-06 22:48:30 +01:00
2023-11-12 17:38:31 +01:00
cmd_duration = {
2023-11-12 17:45:04 +01:00
format = "[]($style)[[󰔚 ](bg:#161821 fg:#d4c097 bold)$duration](bg:#161821 fg:#BBC3DF)[ ]($style)";
2023-11-12 17:38:31 +01:00
disabled = false;
style = "bg:none fg:#161821";
};
2023-11-09 23:32:46 +01:00
# directory.substitutions = {
# "~" = "󰋞";
2023-11-07 00:19:06 +01:00
# "Documents" = " ";
# "Downloads" = " ";
# "Music" = " ";
# "Pictures" = " ";
2023-11-09 23:32:46 +01:00
# };
2023-11-06 22:56:43 +01:00
2023-11-07 00:05:02 +01:00
palette = "catppuccin_mocha";
} // builtins.fromTOML (builtins.readFile "${inputs.catppuccin-starship}/palettes/mocha.toml");
2023-11-05 11:40:44 +01:00
};
2023-11-06 22:04:45 +01:00
}