New starship prompt

This commit is contained in:
2025-11-22 18:47:06 -05:00
parent 72c811c67e
commit 1f1bd53be9
2 changed files with 54 additions and 36 deletions

View File

@@ -20,7 +20,6 @@
}; };
}; };
targets = { targets = {
alacritty.enable = true;
ghostty.enable = true; ghostty.enable = true;
firefox = { firefox = {
enable = true; enable = true;
@@ -29,6 +28,7 @@
firefoxGnomeTheme.enable = true; firefoxGnomeTheme.enable = true;
}; };
lazygit.enable = true; lazygit.enable = true;
starship.enable = true;
yazi.enable = true; yazi.enable = true;
}; };
}; };

View File

@@ -17,25 +17,43 @@
settings = { settings = {
add_newline = true; add_newline = true;
format = pkgs.lib.concatStrings [ format = pkgs.lib.concatStrings [
"[](#f38ba8)" "[](fg:base02)"
"[ 󱄅 ](fg:#1e1e2e bg:#f38ba8)" "[ 󱄅 ](bg:base02 fg:base07)"
"[](fg:#f38ba8 bg:#fab387)" "[](bg:base07 fg:base02)"
"$directory" "[( $username(@$hostname) )](bg:base07 fg:base02)"
"[](fg:#fab387 bg:#f9e2af)" "[](bg:red fg:base07)"
"$git_branch" "[ $directory ](bg:red fg:base02)"
"$git_status" "[](bg:cyan fg:red)"
"[](fg:#f9e2af bg:#a6e3a1)" "[( $git_branch $git_status )](bg:cyan fg:base02)"
"$nodejs" "[](fg:cyan bg:blue)"
"$rust" "[(( $golang)( $nodejs)( $rust)( $python) )](bg:blue fg:base02)"
"$golang" "[](fg:blue)"
"$php"
"[](fg:#a6e3a1)"
"$line_break" "$line_break"
"[](fg:base02)"
"$character" "$character"
]; ];
username = {
show_always = true;
style_user = "none";
style_root = "none";
format = "[$user]($style)";
};
hostname = {
style = "none";
format = "[$hostname]($style)";
ssh_only = false;
};
character = {
success_symbol = "[](bold fg:green)";
error_symbol = "[](bold fg:red)";
vimcmd_symbol = "[](bold fg:green)";
vimcmd_replace_one_symbol = "[](bold fg:lavender)";
vimcmd_replace_symbol = "[](bold fg:lavender)";
vimcmd_visual_symbol = "[](bold fg:yellow)";
};
directory = { directory = {
style = "fg:#1e1e2e bg:#fab387"; style = "none";
format = "[ $path ]($style)"; format = "[$path]($style)";
truncation_length = 3; truncation_length = 3;
truncation_symbol = "/"; truncation_symbol = "/";
substitutions = { substitutions = {
@@ -47,32 +65,32 @@
}; };
git_branch = { git_branch = {
symbol = ""; symbol = "";
style = "bg:#f9e2af"; style = "none";
format = "[[ $symbol $branch ](fg:#1e1e2e bg:#f9e2af)]($style)"; format = "[$symbol $branch]($style)";
}; };
git_status = { git_status = {
style = "bg:#f9e2af"; style = "none";
format = "[[($all_status$ahead_behind )](fg:#1e1e2e bg:#f9e2af)]($style)"; format = "[$all_status$ahead_behind]($style)";
};
nodejs = {
symbol = "";
style = "bg:#a6e3a1";
format = "[[ $symbol ($version) ](fg:#1e1e2e bg:#a6e3a1)]($style)";
};
rust = {
symbol = "";
style = "bg:#a6e3a1";
format = ''[[ $symbol ($version) ](fg:#1e1e2e bg:#a6e3a1)]($style)'';
}; };
golang = { golang = {
symbol = ""; symbol = "";
style = "bg:#a6e3a1"; style = "none";
format = "[[ $symbol ($version) ](fg:#1e1e2e bg#a6e3a1)]($style)"; format = "[$symbol( $version)]($style)";
}; };
php = { nodejs = {
symbol = ""; symbol = "";
style = "bg:#a6e3a1"; style = "none";
format = "[[ $symbol ($version) ](fg:#1e1e2e bg:#a6e3a1)]($style)"; format = "[$symbol( $version)]($style)";
};
python = {
symbol = "";
style = "none";
format = "[$symbol( $version)( \\($virtualenv\\))]($style)";
};
rust = {
symbol = "";
style = "none";
format = "[$symbol( $version)]($style)";
}; };
scan_timeout = 100; scan_timeout = 100;
}; };