48 lines
1.2 KiB
Nix
Executable file
48 lines
1.2 KiB
Nix
Executable file
{ lib, inputs, ... }:
|
||
{
|
||
programs.starship = {
|
||
enable = true;
|
||
|
||
enableBashIntegration = true;
|
||
enableZshIntegration = true;
|
||
enableNushellIntegration = true;
|
||
|
||
settings = {
|
||
format = lib.concatStrings [
|
||
# "$directory"
|
||
# "$git_branch"
|
||
# "$git_status"
|
||
# "$nix_shell"
|
||
"$directory"
|
||
"$git_branch"
|
||
"$git_status"
|
||
"$git_metrics"
|
||
"$time"
|
||
"\n"
|
||
"$character"
|
||
];
|
||
|
||
directory = {
|
||
format = "[ ﱮ $path ]($style)";
|
||
style = "bold #74c7ec";
|
||
};
|
||
|
||
character = {
|
||
# success_symbol = "[ ](bold #89dceb)[›](bold green)";
|
||
# error_symbol = "[ ](bold #89dceb)[›](bold red)";
|
||
success_symbol = "[ ](bold #89dceb)[➜](bold green)";
|
||
error_symbol = "[ ](bold #89dceb)[✗](bold red)";
|
||
};
|
||
|
||
# directory.substitutions = {
|
||
# "Documents" = " ";
|
||
# "Downloads" = " ";
|
||
# "Music" = " ";
|
||
# "Pictures" = " ";
|
||
# "~" = " ";
|
||
# };
|
||
|
||
palette = "catppuccin_mocha";
|
||
} // builtins.fromTOML (builtins.readFile "${inputs.catppuccin-starship}/palettes/mocha.toml");
|
||
};
|
||
} |