Migrate to snowfall lib
This commit is contained in:
62
modules/home/cli/starship/default.nix
Executable file
62
modules/home/cli/starship/default.nix
Executable file
@ -0,0 +1,62 @@
|
||||
{ config, lib, pkgs, ... }: {
|
||||
|
||||
home.sessionVariables.STARSHIP_CACHE = "${config.xdg.cacheHome}/starship";
|
||||
home.packages = with pkgs; [ 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)";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user