rewrite and refactor a lot, delete redundant configs
This commit is contained in:
parent
ca61775d84
commit
c191adcc99
44 changed files with 334 additions and 1607 deletions
36
modules/shell/starship.nix
Normal file
36
modules/shell/starship.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ ... }: {
|
||||
home-manager.users.jade = { pkgs, ... }: {
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
settings = {
|
||||
format = "$all$directory$character";
|
||||
character = {
|
||||
success_symbol = "[\\$](green)";
|
||||
error_symbol = "[X](red)";
|
||||
};
|
||||
git_branch = {
|
||||
format = "\\[[$symbol$branch]($style)\\]";
|
||||
symbol = " ";
|
||||
};
|
||||
git_status = {
|
||||
format = "([\\[$all_status$ahead_behind\\]]($style))";
|
||||
};
|
||||
haskell = {
|
||||
format = "\\[[$symbol($version)]($style)\\]";
|
||||
symbol = " ";
|
||||
};
|
||||
cmd_duration = {
|
||||
format = "\\[[⏱ $duration]($style)\\]";
|
||||
};
|
||||
nix_shell = {
|
||||
format = "\\[[$symbol$state( \\($name\\))]($style)\\]";
|
||||
symbol = " ";
|
||||
};
|
||||
rust = {
|
||||
format = "\\[[$symbol($version)]($style)\\]";
|
||||
symbol = " ";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue