cleaned up and simplified theming
This commit is contained in:
parent
39939714b7
commit
d531fb9c59
12 changed files with 249 additions and 452 deletions
|
@ -10,15 +10,17 @@ in
|
|||
config = mkIf config.modules.shell.toolset.starship.enable {
|
||||
hm.programs.starship = {
|
||||
enable = true;
|
||||
settings = {
|
||||
settings = let
|
||||
inherit (config.lib.stylix.colors) cyan red magenta yellow green blue;
|
||||
in {
|
||||
scan_timeout = 10;
|
||||
add_newline = true;
|
||||
line_break.disabled = true;
|
||||
|
||||
format = "$username$hostname$nix_shell$git_branch$git_commit$git_state$git_status$directory$jobs$cmd_duration$character";
|
||||
username = {
|
||||
style_user = "blue bold";
|
||||
style_root = "red bold";
|
||||
style_user = "${cyan} bold";
|
||||
style_root = "${red} bold";
|
||||
format = "[$user]($style) ";
|
||||
disabled = false;
|
||||
show_always = true;
|
||||
|
@ -27,7 +29,7 @@ in
|
|||
hostname = {
|
||||
ssh_only = false;
|
||||
ssh_symbol = "🌐 ";
|
||||
format = "on [$hostname](bold red) ";
|
||||
format = "on [$hostname](bold ${red}) ";
|
||||
trim_at = ".local";
|
||||
disabled = false;
|
||||
};
|
||||
|
@ -35,28 +37,28 @@ in
|
|||
nix_shell = {
|
||||
symbol = " ";
|
||||
format = "[$symbol$name]($style) ";
|
||||
style = "magenta bold";
|
||||
style = "${magenta} bold";
|
||||
};
|
||||
|
||||
git_branch = {
|
||||
only_attached = true;
|
||||
format = "[$symbol$branch]($style) ";
|
||||
symbol = "שׂ";
|
||||
style = "brightYellow bold";
|
||||
style = "${yellow} bold";
|
||||
};
|
||||
|
||||
git_commit = {
|
||||
only_detached = true;
|
||||
format = "[ﰖ$hash]($style) ";
|
||||
style = "brightYellow bold";
|
||||
style = "${yellow} bold";
|
||||
};
|
||||
|
||||
git_state = {
|
||||
style = "brightMagenta bold";
|
||||
style = "${magenta} bold";
|
||||
};
|
||||
|
||||
git_status = {
|
||||
style = "brightGreen bold";
|
||||
style = "${green} bold";
|
||||
};
|
||||
|
||||
directory = {
|
||||
|
@ -66,16 +68,16 @@ in
|
|||
|
||||
cmd_duration = {
|
||||
format = "[$duration]($style) ";
|
||||
style = "brightBlue";
|
||||
style = "${blue}";
|
||||
};
|
||||
|
||||
jobs = {
|
||||
style = "brightGreen bold";
|
||||
style = "${green} bold";
|
||||
};
|
||||
|
||||
character = {
|
||||
success_symbol = "[\\$](brightGreen} bold)";
|
||||
error_symbol = "[\\$](brightRed bold)";
|
||||
success_symbol = "[\\$](${green}} bold)";
|
||||
error_symbol = "[\\$](${red} bold)";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue