a bunch of starship config

This commit is contained in:
Vinzenz Schroeter 2025-10-10 17:33:44 +02:00
parent 74bd9ffaa3
commit f6e68e166c

View file

@ -1,19 +1,95 @@
{...}:{ { ... }:
{
config.programs.starship = { config.programs.starship = {
enable = true; enable = true;
enableZshIntegration = true; enableZshIntegration = true;
settings = { settings = {
"$schema" = "https://starship.rs/config-schema.json";
add_newline = true;
format =
"[](fg:color_a)[$username ](bg:color_a fg:text_a)[ ](fg:color_a bg:color_b)"
+ "[$os $hostname ($container )](bg:color_b fg:text_b)[ ](fg:color_b bg:color_c)"
+ "[$directory ](bg:color_c fg:text_c)[ ](fg:color_c bg:color_d)"
+ "([$all ](bg:color_d fg:text_d))"
+ "[ ](fg:color_d)"
+ "$cmd_duration"
+ "$line_break$character$status > ";
palette = "color_me_surprised";
palettes.color_me_surprised = {
"color_a" = "red";
"color_b" = "yellow";
"color_c" = "green";
"color_d" = "blue";
"text" = "white";
"text_a" = "white";
"text_b" = "black";
"text_c" = "black";
"text_d" = "white";
};
character = {
success_symbol = "[](bold fg:green)";
error_symbol = "[](bold fg:color_a)";
};
directory = {
format = "$path[$read_only]($read_only_style)";
truncate_to_repo = true;
truncation_symbol = ".../";
read_only = "󰌾";
read_only_style = "fg:color_a bg:green";
home_symbol = "";
substitutions = {
"Documents" = "󰈙";
"Downloads" = "";
"Music" = "󰝚";
"Pictures" = "";
"Developer" = "󰲋";
};
};
hostname = {
disabled = false;
ssh_only = false;
format = "$hostname";
ssh_symbol = "";
};
username = {
format = "$user";
show_always = true;
};
git_status = {
ahead = "$count";
behind = "$count";
deleted = "x";
diverged = "$ahead_count$behind_count";
};
status = {
disabled = false;
format = "[$symbol$status_common_meaning$status_signal_name$status_maybe_int]($style)";
map_symbol = true;
pipestatus = true;
symbol = "🔴";
};
os = {
disabled = false;
format = "$symbol";
};
cmd_duration = {
format = "[󱦟 $duration]($style)";
};
# icons
c.symbol = "";
aws.symbol = " "; aws.symbol = " ";
buf.symbol = ""; buf.symbol = "";
bun.symbol = ""; bun.symbol = "";
c.symbol = " ";
cpp.symbol = ""; cpp.symbol = "";
cmake.symbol = ""; cmake.symbol = "";
conda.symbol = ""; conda.symbol = "";
crystal.symbol = ""; crystal.symbol = "";
dart.symbol = ""; dart.symbol = "";
deno.symbol = ""; deno.symbol = "";
directory.read_only = " 󰌾";
docker_context.symbol = ""; docker_context.symbol = "";
elixir.symbol = ""; elixir.symbol = "";
elm.symbol = ""; elm.symbol = "";
@ -27,7 +103,6 @@
haskell.symbol = ""; haskell.symbol = "";
haxe.symbol = ""; haxe.symbol = "";
hg_branch.symbol = ""; hg_branch.symbol = "";
hostname.ssh_symbol = " ";
java.symbol = ""; java.symbol = "";
julia.symbol = ""; julia.symbol = "";
kotlin.symbol = ""; kotlin.symbol = "";
@ -98,5 +173,7 @@
swift.symbol = ""; swift.symbol = "";
zig.symbol = ""; zig.symbol = "";
gradle.symbol = ""; gradle.symbol = "";
}; };
};} };
}