fix: starship 改用 Tokyo Night 内联配置,修复跨平台 catppuccin IFD 问题

This commit is contained in:
2026-04-11 02:07:41 +08:00
parent c7635e1250
commit 05b6af19ea
3 changed files with 60 additions and 22 deletions
+50 -19
View File
@@ -9,30 +9,35 @@
add_newline = false;
format = lib.concatStrings [
"[](#a3aed2)"
"$os"
"$username"
"$hostname"
"[](bg:#769ff0 fg:#a3aed2)"
"$directory"
"[](fg:#769ff0 bg:#394260)"
"$git_branch"
"$git_status"
"[](fg:#394260 bg:#212736)"
"$nix_shell"
"$nodejs"
"$python"
"$go"
"$rust"
"$docker_context"
"[](fg:#212736 bg:#1d2230)"
"$cmd_duration"
"$line_break"
"$character"
"[ ](fg:#1d2230)"
"\n$character"
];
character = {
success_symbol = "[](bold green)";
success_symbol = "[](bold #769ff0)";
error_symbol = "[](bold red)";
};
os = {
disabled = false;
style = "bg:#a3aed2 fg:#090c0c";
format = "[ $symbol]($style)";
symbols = {
NixOS = " ";
Linux = " ";
@@ -42,6 +47,8 @@
};
directory = {
style = "fg:#e3e5e5 bg:#769ff0";
format = "[ $path ]($style)";
truncation_length = 3;
truncation_symbol = "/";
substitutions = {
@@ -51,35 +58,59 @@
};
};
git_branch.symbol = " ";
git_branch = {
symbol = "";
style = "bg:#394260";
format = "[[ $symbol $branch ](fg:#769ff0 bg:#394260)]($style)";
};
git_status = {
format = "([\\[$all_status$ahead_behind\\]]($style) )";
style = "bg:#394260";
format = "[[($all_status$ahead_behind )](fg:#769ff0 bg:#394260)]($style)";
};
nix_shell = {
symbol = " ";
format = "[$symbol$state( \\($name\\))]($style) ";
style = "bg:#212736";
format = "[[ $symbol$state( \\($name\\)) ](fg:#769ff0 bg:#212736)]($style)";
};
nodejs = {
symbol = "";
style = "bg:#212736";
format = "[[ $symbol ($version) ](fg:#769ff0 bg:#212736)]($style)";
detect_extensions = [ ];
};
python = {
symbol = "";
style = "bg:#212736";
format = "[[ $symbol ($version) ](fg:#769ff0 bg:#212736)]($style)";
};
go = {
symbol = "";
style = "bg:#212736";
format = "[[ $symbol ($version) ](fg:#769ff0 bg:#212736)]($style)";
};
rust = {
symbol = "";
style = "bg:#212736";
format = "[[ $symbol ($version) ](fg:#769ff0 bg:#212736)]($style)";
};
docker_context = {
symbol = " ";
format = "[$symbol$context]($style) ";
style = "bg:#212736";
format = "[[ $symbol $context ](fg:#769ff0 bg:#212736)]($style)";
};
cmd_duration = {
min_time = 2000;
format = "[$duration]($style) ";
style = "bg:#1d2230";
format = "[[ $duration ](fg:#a0a9cb bg:#1d2230)]($style)";
};
nodejs = {
format = "[$symbol($version)]($style) ";
detect_extensions = [ ];
};
python.format = "[$symbol($version)]($style) ";
go.format = "[$symbol($version)]($style) ";
rust.format = "[$symbol($version)]($style) ";
};
};
}
+2 -1
View File
@@ -4,6 +4,7 @@
catppuccin = {
enable = true;
flavor = "mocha";
nvim.enable = false; # catppuccin-nvim require check broken in nixpkgs
nvim.enable = false;
starship.enable = false;
};
}