a bunch of starship config
This commit is contained in:
parent
74bd9ffaa3
commit
f6e68e166c
1 changed files with 173 additions and 96 deletions
|
@ -1,19 +1,95 @@
|
|||
{...}:{
|
||||
{ ... }:
|
||||
{
|
||||
config.programs.starship = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
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 = " ";
|
||||
buf.symbol = "";
|
||||
bun.symbol = "";
|
||||
c.symbol = " ";
|
||||
cpp.symbol = "";
|
||||
cmake.symbol = "";
|
||||
conda.symbol = "";
|
||||
crystal.symbol = "";
|
||||
dart.symbol = "";
|
||||
deno.symbol = "";
|
||||
directory.read_only = " ";
|
||||
docker_context.symbol = "";
|
||||
elixir.symbol = "";
|
||||
elm.symbol = "";
|
||||
|
@ -27,7 +103,6 @@
|
|||
haskell.symbol = "";
|
||||
haxe.symbol = "";
|
||||
hg_branch.symbol = "";
|
||||
hostname.ssh_symbol = " ";
|
||||
java.symbol = "";
|
||||
julia.symbol = "";
|
||||
kotlin.symbol = "";
|
||||
|
@ -98,5 +173,7 @@
|
|||
swift.symbol = "";
|
||||
zig.symbol = "";
|
||||
gradle.symbol = "";
|
||||
|
||||
};
|
||||
};}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue