stashing
This commit is contained in:
parent
32f2213e88
commit
ba45da3b8a
4 changed files with 36 additions and 42 deletions
|
@ -11,24 +11,15 @@ in
|
|||
config = mkIf config.modules.${user}.shell.toolset.starship.enable {
|
||||
home-manager.users.${user}.programs.starship = {
|
||||
enable = true;
|
||||
settings = let
|
||||
# inherit (config.lib.stylix.colors) cyan red magenta yellow green blue;
|
||||
|
||||
cyan = "#00ffff";
|
||||
red = "#ff0000";
|
||||
magenta = "#ff00ff";
|
||||
yellow = "#ffff00";
|
||||
green = "#00ff00";
|
||||
blue = "#0000ff";
|
||||
in {
|
||||
settings = {
|
||||
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 = "${cyan} bold";
|
||||
style_root = "${red} bold";
|
||||
style_user = "cyan bold";
|
||||
style_root = "red bold";
|
||||
format = "[$user]($style) ";
|
||||
disabled = false;
|
||||
show_always = true;
|
||||
|
@ -37,7 +28,7 @@ in
|
|||
hostname = {
|
||||
ssh_only = false;
|
||||
ssh_symbol = "🌐 ";
|
||||
format = "on [$hostname](bold ${red}) ";
|
||||
format = "on [$hostname](bold red) ";
|
||||
trim_at = ".local";
|
||||
disabled = false;
|
||||
};
|
||||
|
@ -45,28 +36,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 = "${yellow} bold";
|
||||
style = "yellow bold";
|
||||
};
|
||||
|
||||
git_commit = {
|
||||
only_detached = true;
|
||||
format = "[ﰖ$hash]($style) ";
|
||||
style = "${yellow} bold";
|
||||
style = "yellow bold";
|
||||
};
|
||||
|
||||
git_state = {
|
||||
style = "${magenta} bold";
|
||||
style = "magenta bold";
|
||||
};
|
||||
|
||||
git_status = {
|
||||
style = "${green} bold";
|
||||
style = "green bold";
|
||||
};
|
||||
|
||||
directory = {
|
||||
|
@ -76,16 +67,16 @@ in
|
|||
|
||||
cmd_duration = {
|
||||
format = "[$duration]($style) ";
|
||||
style = "${blue}";
|
||||
style = "blue";
|
||||
};
|
||||
|
||||
jobs = {
|
||||
style = "${green} bold";
|
||||
style = "green bold";
|
||||
};
|
||||
|
||||
character = {
|
||||
success_symbol = "[\\$](${green}} bold)";
|
||||
error_symbol = "[\\$](${red} bold)";
|
||||
success_symbol = "[\\$](green bold)";
|
||||
error_symbol = "[\\$](red bold)";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue