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