starship: rewrite
This commit is contained in:
parent
64c47c8fd2
commit
9095a2f734
1 changed files with 52 additions and 45 deletions
|
@ -9,43 +9,62 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
enableNushellIntegration = true;
|
enableNushellIntegration = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
palette = "tokyonight";
|
||||||
|
add_newline = false;
|
||||||
|
palettes.tokyonight = {
|
||||||
|
red = "#f7768e";
|
||||||
|
orange = "#ff9e64";
|
||||||
|
yellow = "#e0af68";
|
||||||
|
light-green = "#9ece6a";
|
||||||
|
green = "#73daca";
|
||||||
|
turquoise = "#89ddff";
|
||||||
|
light-cyan = "#b4f9f8";
|
||||||
|
teal = "#2ac3de";
|
||||||
|
cyan = "#7dcfff";
|
||||||
|
blue = "#7aa2f7";
|
||||||
|
magenta = "#bb9af7";
|
||||||
|
white = "#c0caf5";
|
||||||
|
light-gray = "#9aa5ce";
|
||||||
|
parameters = "#cfc9c2";
|
||||||
|
comment = "#565f89";
|
||||||
|
black = "#414868";
|
||||||
|
foreground = "#a9b1d6";
|
||||||
|
background = "#1a1b26";
|
||||||
|
};
|
||||||
format = lib.concatStrings [
|
format = lib.concatStrings [
|
||||||
"[░▒▓](#f5c2e7)"
|
"$character"
|
||||||
"$username"
|
|
||||||
"$hostname"
|
"$hostname"
|
||||||
"[](bg:#f38ba8 fg:#f5c2e7)"
|
|
||||||
"$directory"
|
"$directory"
|
||||||
"[](fg:#f38ba8 bg:#eb7c92)"
|
|
||||||
"$git_branch"
|
"$git_branch"
|
||||||
"$git_status"
|
"$git_status"
|
||||||
"[](fg:#eb7c92 bg:#e6657f)"
|
|
||||||
"$c"
|
|
||||||
"$golang"
|
|
||||||
"$nodejs"
|
|
||||||
"$rust"
|
"$rust"
|
||||||
"$docker_context"
|
"$golang"
|
||||||
"[](fg:#e6657f bg:#e05a75)"
|
|
||||||
"$time"
|
|
||||||
"[](fg:#e05a75)"
|
|
||||||
];
|
];
|
||||||
|
right_format = lib.concatStrings [
|
||||||
|
"$nix_shell"
|
||||||
|
];
|
||||||
|
character = {
|
||||||
|
error_symbol = "[](bold red)";
|
||||||
|
success_symbol = "[](bold teal)";
|
||||||
|
};
|
||||||
username = {
|
username = {
|
||||||
show_always = true;
|
show_always = false;
|
||||||
style_user = "bg:#f5c2e7 fg:#11111b";
|
format = "[$user]($style)";
|
||||||
style_root = "bg:#f5c2e7 fg:#11111b";
|
style_user = "red";
|
||||||
format = "[ $user]($style)";
|
|
||||||
};
|
};
|
||||||
hostname = {
|
hostname = {
|
||||||
ssh_symbol = "";
|
ssh_symbol = "🌐";
|
||||||
style = "bg:#f5c2e7 fg:#11111b";
|
format = "[on $hostname $ssh_symbol]($style)";
|
||||||
format = "[@$hostname]($style)";
|
ssh_only = true;
|
||||||
ssh_only = false;
|
|
||||||
disabled = false;
|
disabled = false;
|
||||||
};
|
};
|
||||||
directory = {
|
directory = {
|
||||||
style = "bg:#f38ba8 fg:#11111b";
|
|
||||||
format = "[$path ]($style)";
|
format = "[$path ]($style)";
|
||||||
truncation_length = 3;
|
truncation_length = 3;
|
||||||
truncation_symbol = "…/";
|
truncation_symbol = "…/";
|
||||||
|
read_only = "🔒";
|
||||||
|
style = "teal";
|
||||||
|
home_symbol = "";
|
||||||
};
|
};
|
||||||
directory.substitutions = {
|
directory.substitutions = {
|
||||||
"Documents" = " ";
|
"Documents" = " ";
|
||||||
|
@ -53,45 +72,33 @@
|
||||||
"Music" = " ";
|
"Music" = " ";
|
||||||
"Pictures" = " ";
|
"Pictures" = " ";
|
||||||
};
|
};
|
||||||
c = {
|
nix_shell = {
|
||||||
symbol = " ";
|
disabled = false;
|
||||||
style = "bg:#e6657f fg:#11111b";
|
impure_msg = "[impure shell](bold red)";
|
||||||
format = "[ $symbol ($version) ]($style)";
|
pure_msg = "[pure shell](bold green)";
|
||||||
};
|
unknown_msg = "[unknown shell](bold yellow)";
|
||||||
docker_context = {
|
format = "via [ $state( \($name\))](bold teal)";
|
||||||
symbol = " ";
|
|
||||||
style = "bg:#e6657f fg:#11111b";
|
|
||||||
format = "[ $symbol $context ]($style) $path";
|
|
||||||
};
|
};
|
||||||
git_branch = {
|
git_branch = {
|
||||||
symbol = "";
|
symbol = "";
|
||||||
style = "bg:#eb7c92 fg:#11111b";
|
|
||||||
format = "[$symbol $branch ]($style)";
|
format = "[$symbol $branch ]($style)";
|
||||||
};
|
};
|
||||||
git_status = {
|
git_status = {
|
||||||
style = "bg:#eb7c92 fg:#11111b";
|
|
||||||
format = "[$all_status$ahead_behind ]($style)";
|
format = "[$all_status$ahead_behind ]($style)";
|
||||||
};
|
};
|
||||||
golang = {
|
golang = {
|
||||||
symbol = " ";
|
symbol = " ";
|
||||||
style = "bg:#e6657f fg:#11111b";
|
|
||||||
format = "[ $symbol ($version) ]($style)";
|
|
||||||
};
|
|
||||||
nodejs = {
|
|
||||||
symbol = "";
|
|
||||||
style = "bg:#e6657f fg:#11111b";
|
|
||||||
format = "[$symbol ($version) ]($style)";
|
format = "[$symbol ($version) ]($style)";
|
||||||
};
|
};
|
||||||
rust = {
|
rust = {
|
||||||
symbol = "";
|
symbol = "";
|
||||||
style = "bg:#e6657f fg:#11111b";
|
|
||||||
format = "[$symbol ($version) ]($style)";
|
format = "[$symbol ($version) ]($style)";
|
||||||
};
|
};
|
||||||
time = {
|
time = {
|
||||||
disabled = false;
|
disabled = false;
|
||||||
time_format = "%R"; # Hour:Minute Format
|
time_format = "%R";
|
||||||
style = "bg:#e05a75 fg:#11111b";
|
|
||||||
format = "[ $time ]($style)";
|
format = "[ $time ]($style)";
|
||||||
|
style = "red";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue