Gen 392: added shell version to starship prompt

This commit is contained in:
pagedMov
2024-10-11 21:50:44 -04:00
parent 38e33a4c6c
commit a31cbe4d7e

View File

@@ -6,11 +6,11 @@
enableZshIntegration = false;
settings = {
add_newline = true;
# right_format = "";
right_format = "($custom)";
format = lib.concatStrings [
"($username)(bold white)($cmd_duration)($character)"
"($git_branch)($git_status)"
"($git_branch)($git_status)($rust)($nix-shell)"
"($directory)"
"$line_break[ ](bold #89b4fa)"
];
@@ -39,6 +39,7 @@
show_notifications = false;
min_time_to_notify = 60000;
};
git_branch = {
format = "\non [$symbol$branch](bold purple)";
symbol = " ";
@@ -46,6 +47,13 @@
style = "bold purple";
};
custom.shellver = {
command = "zsh --version";
when = ''test $SHELL = "/run/current-system/sw/bin/zsh"'';
symbol = "";
style = "bold magenta";
};
palette = "catppuccin_mocha";
} // builtins.fromTOML (builtins.readFile "${inputs.catppuccin-starship}/themes/mocha.toml");
};