61 lines
1.8 KiB
Nix
Executable File
61 lines
1.8 KiB
Nix
Executable File
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: {
|
|
|
|
home.sessionVariables.STARSHIP_CACHE = "${config.xdg.cacheHome}/starship";
|
|
|
|
programs.starship = {
|
|
enable = true;
|
|
enableFishIntegration = false;
|
|
enableIonIntegration = false;
|
|
enableNushellIntegration = false;
|
|
enableZshIntegration = true;
|
|
settings = {
|
|
format = lib.concatStrings [
|
|
"[░▒▓](#${config.colorScheme.colors.base06})"
|
|
"$username"
|
|
"$hostname"
|
|
"[](bg:#${config.colorScheme.colors.base05} fg:#${config.colorScheme.colors.base06})"
|
|
"$directory"
|
|
"[](bg:#${config.colorScheme.colors.base04} fg:#${config.colorScheme.colors.base05})"
|
|
"[ ](bg:#${config.colorScheme.colors.base04})"
|
|
"$env_var"
|
|
"[](bg:#${config.colorScheme.colors.base00} fg:#${config.colorScheme.colors.base04})"
|
|
" "
|
|
];
|
|
username = {
|
|
show_always = true;
|
|
style_user = "bg:#${config.colorScheme.colors.base06} fg:#${config.colorScheme.colors.base00}";
|
|
style_root = "bg:#${config.colorScheme.colors.base06} fg:#${config.colorScheme.colors.base00}";
|
|
format = "[ $user]($style)";
|
|
};
|
|
hostname = {
|
|
ssh_symbol = "";
|
|
style = "bg:#${config.colorScheme.colors.base06} fg:#${config.colorScheme.colors.base00}";
|
|
format = "[@$hostname]($style)";
|
|
ssh_only = false;
|
|
disabled = false;
|
|
};
|
|
directory = {
|
|
style = "bg:#${config.colorScheme.colors.base05} fg:#${config.colorScheme.colors.base00}";
|
|
format = "[ $path ]($style)";
|
|
truncation_length = 3;
|
|
truncation_symbol = "…/";
|
|
};
|
|
directory.substitutions = {
|
|
"documents" = " ";
|
|
"downloads" = " ";
|
|
"music" = " ";
|
|
"pictures" = " ";
|
|
};
|
|
env_var = {
|
|
variable = "DEVSH";
|
|
default = "";
|
|
style = "bg:#${config.colorScheme.colors.base04} fg:#${config.colorScheme.colors.base00}";
|
|
format = "[$env_value]($style)";
|
|
};
|
|
};
|
|
};
|
|
} |