Initial commit
This commit is contained in:
commit
cfcc57a8bd
353 changed files with 18756 additions and 0 deletions
73
module/aspect/software/software-tty/starship.nix
Normal file
73
module/aspect/software/software-tty/starship.nix
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
{
|
||||
den.aspects = {
|
||||
software-tty = {
|
||||
homeManager = {
|
||||
programs = {
|
||||
starship = {
|
||||
enable = true;
|
||||
enableTransience = true;
|
||||
settings = {
|
||||
custom.jj1 = {
|
||||
when = "jj root --ignore-working-copy";
|
||||
detect_folders = [ ".jj" ];
|
||||
ignore_timeout = true;
|
||||
format = "$output ";
|
||||
command = ''
|
||||
jj log --revisions @ --no-graph --ignore-working-copy --color always --limit 1 --template '
|
||||
surround("[", "",
|
||||
separate(" ",
|
||||
change_id.shortest(),
|
||||
commit_id.shortest(),
|
||||
bookmarks,
|
||||
"|",
|
||||
concat(
|
||||
if(conflict, "💥"),
|
||||
if(divergent, "🚧"),
|
||||
if(hidden, "👻"),
|
||||
if(immutable, "🔒"),
|
||||
),
|
||||
raw_escape_sequence("\x1b[1;32m") ++ if(empty, "(empty)"),
|
||||
raw_escape_sequence("\x1b[1;32m") ++ coalesce(
|
||||
truncate_end(29, description.first_line(), "..."),
|
||||
"(no description)",
|
||||
) ++ raw_escape_sequence("\x1b[0m"),
|
||||
)
|
||||
)
|
||||
'
|
||||
'';
|
||||
};
|
||||
custom.jj2 = {
|
||||
when = "jj root --ignore-working-copy";
|
||||
detect_folders = [ ".jj" ];
|
||||
ignore_timeout = true;
|
||||
format = "$output ";
|
||||
command = ''
|
||||
jj log --revisions "streams()" --no-graph --ignore-working-copy --color always --template '
|
||||
surround("", "]",
|
||||
bookmarks
|
||||
)
|
||||
'
|
||||
'';
|
||||
};
|
||||
git_state = {
|
||||
disabled = true;
|
||||
};
|
||||
git_status = {
|
||||
disabled = true;
|
||||
};
|
||||
git_commit = {
|
||||
disabled = true;
|
||||
};
|
||||
git_metrics = {
|
||||
disabled = true;
|
||||
};
|
||||
git_branch = {
|
||||
disabled = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue