2024-03-24 18:02:45 +00:00
|
|
|
{ lib, ... }: {
|
2024-03-24 18:02:32 +00:00
|
|
|
programs.starship = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
format = lib.concatStrings [
|
|
|
|
"[┌───────────────────>](bold green)"
|
|
|
|
"$line_break"
|
|
|
|
"[│](bold green)$username$hostname:$directory"
|
|
|
|
"$line_break"
|
|
|
|
"[└─>](bold green)"
|
|
|
|
];
|
|
|
|
username = {
|
|
|
|
style_user = "red bold";
|
|
|
|
style_root = "black bold";
|
|
|
|
format = "\\[[$user]($style)\\]";
|
|
|
|
disabled = false;
|
|
|
|
show_always = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
hostname = {
|
|
|
|
ssh_only = false;
|
|
|
|
format = lib.concatStrings [
|
|
|
|
"[$ssh_symbol](bold blue)"
|
|
|
|
"@[$hostname](bold green)"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
directory = {
|
|
|
|
truncation_length = 4;
|
|
|
|
truncation_symbol = "../";
|
|
|
|
};
|
|
|
|
|
|
|
|
status = {
|
|
|
|
symbol = "🔴";
|
|
|
|
format = lib.concatStrings [ "[\\[" "$symbol" "$common_meaning" "$signal_name" "$maybe_int" "\\]]" "($style)" ];
|
|
|
|
map_symbol = true;
|
|
|
|
disabled = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
right_format = lib.concatStrings [
|
|
|
|
"$vcsh"
|
|
|
|
"$fossil_branch"
|
|
|
|
"$git_branch"
|
|
|
|
"$git_commit"
|
|
|
|
"$git_state"
|
|
|
|
"$git_metrics"
|
|
|
|
"$git_status"
|
|
|
|
"$hg_branch"
|
|
|
|
"$pijul_channel"
|
|
|
|
"$docker_context"
|
|
|
|
"$package"
|
|
|
|
"$c"
|
|
|
|
"$cmake"
|
|
|
|
"$cobol"
|
|
|
|
"$daml"
|
|
|
|
"$dart"
|
|
|
|
"$deno"
|
|
|
|
"$dotnet"
|
|
|
|
"$elixir"
|
|
|
|
"$elm"
|
|
|
|
"$erlang"
|
|
|
|
"$fennel"
|
|
|
|
"$golang"
|
|
|
|
"$guix_shell"
|
|
|
|
"$haskell"
|
|
|
|
"$haxe"
|
|
|
|
"$helm"
|
|
|
|
"$java"
|
|
|
|
"$julia"
|
|
|
|
"$kotlin"
|
|
|
|
"$gradle"
|
|
|
|
"$lua"
|
|
|
|
"$nim"
|
|
|
|
"$nodejs"
|
|
|
|
"$ocaml"
|
|
|
|
"$opa"
|
|
|
|
"$perl"
|
|
|
|
"$php"
|
|
|
|
"$pulumi"
|
|
|
|
"$purescript"
|
|
|
|
"$python"
|
|
|
|
"$raku"
|
|
|
|
"$rlang"
|
|
|
|
"$red"
|
|
|
|
"$ruby"
|
|
|
|
"$rust"
|
|
|
|
"$scala"
|
|
|
|
"$swift"
|
|
|
|
"$terraform"
|
|
|
|
"$vlang"
|
|
|
|
"$vagrant"
|
|
|
|
"$zig"
|
|
|
|
"$buf"
|
|
|
|
"$nix_shell"
|
|
|
|
"$conda"
|
|
|
|
"$meson"
|
|
|
|
"$spack"
|
|
|
|
"$memory_usage"
|
|
|
|
"$aws"
|
|
|
|
"$gcloud"
|
|
|
|
"$openstack"
|
|
|
|
"$azure"
|
|
|
|
"$env_var"
|
|
|
|
"$crystal"
|
|
|
|
"$custom"
|
|
|
|
"$sudo"
|
|
|
|
"$cmd_duration"
|
|
|
|
"$line_break"
|
|
|
|
"$jobs"
|
|
|
|
"$battery"
|
|
|
|
"$time"
|
|
|
|
"$status"
|
|
|
|
"$os"
|
|
|
|
"$container"
|
|
|
|
"$shell"
|
|
|
|
"$character"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|