some updates

This commit is contained in:
gwg313 2025-03-20 13:33:50 -04:00
parent e9adb6d552
commit 9f06dd6c2c
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
22 changed files with 675 additions and 347 deletions

View file

@ -1,18 +1,51 @@
# A customizable prompt for shells.
{ ... }:
{ config, lib, ... }:
let
accent = "#${config.lib.stylix.colors.base0D}";
background-alt = "#${config.lib.stylix.colors.base01}";
in
{
programs.starship = {
enable = true;
enableZshIntegration = true;
enableNushellIntegration = true;
settings = {
add_newline = true;
character = {
success_symbol = "";
error_symbol = "";
format = lib.concatStrings [
"$hostname"
"$directory"
"$git_branch"
"$git_state"
"$git_status"
"$character"
];
directory = {
style = accent;
};
aws = {
disabled = true;
character = {
success_symbol = "[](${accent})";
error_symbol = "[](red)";
vimcmd_symbol = "[](cyan)";
};
git_branch = {
symbol = "[](${background-alt}) ";
style = "fg:${accent} bg:${background-alt}";
format = "on [$symbol$branch]($style)[](${background-alt}) ";
};
git_status = {
format = "[[(*$conflicted$untracked$modified$staged$renamed$deleted)](218)($ahead_behind$stashed)]($style)";
style = "cyan";
conflicted = "";
renamed = "";
deleted = "";
stashed = "";
};
git_state = {
format = "([$state( $progress_current/$progress_total)]($style)) ";
style = "bright-black";
};
};
};