improved starship config
This commit is contained in:
parent
5426512545
commit
d95e3696d3
1 changed files with 60 additions and 50 deletions
|
@ -6,39 +6,40 @@
|
||||||
enableNushellIntegration = true;
|
enableNushellIntegration = true;
|
||||||
settings = {
|
settings = {
|
||||||
format = lib.concatStrings [
|
format = lib.concatStrings [
|
||||||
"$username"
|
"[ ](fg:twelve bg:trans_blue)"
|
||||||
|
"[ ](bg:trans_blue)[ ](fg:trans_blue bg:trans_pink)"
|
||||||
|
"$hostname"
|
||||||
|
"[ ](bg:trans_pink)[ ](fg:trans_pink bg:trans_white)"
|
||||||
"$directory"
|
"$directory"
|
||||||
"("
|
"[ ](bg:trans_white)[ ](fg:trans_white bg:trans_pink)"
|
||||||
"$python"
|
|
||||||
"$conda"
|
|
||||||
"$nodejs"
|
|
||||||
"$c"
|
|
||||||
"$golang"
|
|
||||||
"$haskell"
|
|
||||||
"$java"
|
|
||||||
"$julia"
|
|
||||||
"$rust"
|
|
||||||
")"
|
|
||||||
"[](fg:fourth bg:fifth)"
|
|
||||||
"$docker_context"
|
|
||||||
"[](fg:fifth bg:sixth)"
|
|
||||||
"("
|
"("
|
||||||
"$git_branch"
|
"$git_branch"
|
||||||
"$git_status"
|
"$git_status"
|
||||||
")"
|
")"
|
||||||
"[](fg:sixth bg:seventh)"
|
"[ ](bg:trans_pink)[ ](fg:trans_pink bg:trans_blue)"
|
||||||
"$time"
|
|
||||||
"$cmd_duration"
|
|
||||||
"$character"
|
"$character"
|
||||||
];
|
];
|
||||||
|
|
||||||
palette = "pal";
|
right_format = lib.concatStrings [
|
||||||
|
"$cmd_duration"
|
||||||
|
"("
|
||||||
|
"$python"
|
||||||
|
"$conda"
|
||||||
|
"$c"
|
||||||
|
"$cmake"
|
||||||
|
"$golang"
|
||||||
|
"$haskell"
|
||||||
|
"$rust"
|
||||||
|
")"
|
||||||
|
];
|
||||||
|
|
||||||
|
palette = "stylix";
|
||||||
|
|
||||||
# Disables the blank line at the start of the prompt
|
# Disables the blank line at the start of the prompt
|
||||||
add_newline = true;
|
add_newline = true;
|
||||||
|
|
||||||
|
|
||||||
palettes.pal = {
|
palettes.stylix = {
|
||||||
first = config.lib.stylix.colors.withHashtag.base00;
|
first = config.lib.stylix.colors.withHashtag.base00;
|
||||||
second = config.lib.stylix.colors.withHashtag.base01;
|
second = config.lib.stylix.colors.withHashtag.base01;
|
||||||
third = config.lib.stylix.colors.withHashtag.base02;
|
third = config.lib.stylix.colors.withHashtag.base02;
|
||||||
|
@ -47,26 +48,41 @@
|
||||||
sixth = config.lib.stylix.colors.withHashtag.base05;
|
sixth = config.lib.stylix.colors.withHashtag.base05;
|
||||||
seventh = config.lib.stylix.colors.withHashtag.base06;
|
seventh = config.lib.stylix.colors.withHashtag.base06;
|
||||||
eighth = config.lib.stylix.colors.withHashtag.base07;
|
eighth = config.lib.stylix.colors.withHashtag.base07;
|
||||||
error = config.lib.stylix.colors.withHashtag.base08;
|
baseeight = config.lib.stylix.colors.withHashtag.base08;
|
||||||
|
basenine = config.lib.stylix.colors.withHashtag.base09;
|
||||||
|
ten = config.lib.stylix.colors.withHashtag.base0A;
|
||||||
|
eleven = config.lib.stylix.colors.withHashtag.base0B;
|
||||||
|
twelve = config.lib.stylix.colors.withHashtag.base0C;
|
||||||
|
thirteen = config.lib.stylix.colors.withHashtag.base0D;
|
||||||
|
fourteen = config.lib.stylix.colors.withHashtag.base0E;
|
||||||
|
fifteen = config.lib.stylix.colors.withHashtag.base0F;
|
||||||
|
trans_blue = "#55CDFD";
|
||||||
|
trans_pink = "#F6AAB7";
|
||||||
|
trans_white = "#FFFFFF";
|
||||||
|
pride_red = "#FF1E26";
|
||||||
|
pride_orange = "#FE941E";
|
||||||
|
pride_yellow = "#FFFF00";
|
||||||
|
pride_green = "#06BD00";
|
||||||
|
pride_blue = "#001A98";
|
||||||
|
pride_violet = "#760088";
|
||||||
# Text color:
|
# Text color:
|
||||||
black = "#272D37";
|
black = "#272D37";
|
||||||
white = "#CBF4F8";
|
white = "#CBF4F8";
|
||||||
github = "#B02B10";
|
github = "#B02B10";
|
||||||
};
|
};
|
||||||
|
|
||||||
username = {
|
hostname = {
|
||||||
show_always = true;
|
ssh_only = false;
|
||||||
style_user = "bg:second fg:white";
|
style = "bg:trans_pink fg:twelve";
|
||||||
style_root = "bg:second fg:white";
|
format = "[$hostname](bold $style)";
|
||||||
format = "[$user]($style)[](fg:second bg:third)";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
directory = {
|
directory = {
|
||||||
style = "bg:third fg:white";
|
style = "bg:trans_white fg:twelve";
|
||||||
format = "[ $path ]($style)($style)[$read_only]($read_only_style)[](fg:third bg:fourth)";
|
format = "[ $path](bold $style)($style)[$read_only](bold $style)";
|
||||||
truncation_symbol = "…/";
|
truncation_symbol = "…/";
|
||||||
truncate_to_repo = true;
|
truncate_to_repo = true;
|
||||||
read_only =" ";
|
read_only =" ";
|
||||||
};
|
};
|
||||||
|
|
||||||
c = {
|
c = {
|
||||||
|
@ -76,6 +92,13 @@
|
||||||
format = "[$symbol($version) ]($style)";
|
format = "[$symbol($version) ]($style)";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
cmake = {
|
||||||
|
symbol = "△ ";
|
||||||
|
version_format = "\${raw}";
|
||||||
|
style = "bg:fourth fg:white";
|
||||||
|
format = "[$symbol($version) ]($style)";
|
||||||
|
};
|
||||||
|
|
||||||
golang = {
|
golang = {
|
||||||
symbol = " ";
|
symbol = " ";
|
||||||
version_format = "\${raw}";
|
version_format = "\${raw}";
|
||||||
|
@ -112,38 +135,25 @@
|
||||||
format = "[$symbol($version) ]($style)";
|
format = "[$symbol($version) ]($style)";
|
||||||
};
|
};
|
||||||
|
|
||||||
docker_context = {
|
|
||||||
symbol = " ";
|
|
||||||
style = "bg:fifth fg:white";
|
|
||||||
format = "[$symbol $context ]($style)";
|
|
||||||
};
|
|
||||||
|
|
||||||
git_branch = {
|
git_branch = {
|
||||||
symbol = " ";
|
symbol = " ";
|
||||||
style = "bg:sixth fg:white";
|
style = "bg:trans_pink fg:twelve";
|
||||||
format = "[$symbol $branch ]($style)";
|
format = "[$symbol $branch ](bold $style)";
|
||||||
};
|
};
|
||||||
|
|
||||||
git_status = {
|
git_status = {
|
||||||
format = "([\($all_status$ahead_behind\) ]($style))";
|
style = "bold bg:trans_pink fg:twelve";
|
||||||
style = "bold bg:sixth fg:github";
|
format = "([\($all_status$ahead_behind\)](bold $style))";
|
||||||
};
|
|
||||||
|
|
||||||
time = {
|
|
||||||
disabled = false;
|
|
||||||
time_format = "%R"; # Hour:Minute Format
|
|
||||||
style = "bg:seventh fg:white";
|
|
||||||
format = "[ $time]($style)[](fg:seventh bg:eighth)";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
cmd_duration = {
|
cmd_duration = {
|
||||||
style = "bg:eighth fg:white";
|
style = "bg:eighth fg:twelve";
|
||||||
format = "[ $duration ]($style)";
|
format = "[ $duration ](bold $style)";
|
||||||
};
|
};
|
||||||
|
|
||||||
character = {
|
character = {
|
||||||
success_symbol = "[](fg:eighth bg:eighth)[](fg:eighth)";
|
success_symbol = "[:3 ](bold fg:twelve bg:trans_blue)[](fg:trans_blue)";
|
||||||
error_symbol = "[](fg:eighth bg:error)[](fg:error)";
|
error_symbol = "[:o ](bold fg:twelve bg:trans_blue)[](fg:trans_blue)";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue