129 lines
2.7 KiB
Nix
129 lines
2.7 KiB
Nix
{ lib, ... }: {
|
||
programs.starship = {
|
||
enable = true;
|
||
settings = {
|
||
format = lib.concatStrings [
|
||
"[┌───────────────────>](bold green)"
|
||
"$line_break"
|
||
"[│](bold green)$username$hostname:$directory"
|
||
"$line_break"
|
||
"[└─>](bold green)"
|
||
"$character"
|
||
];
|
||
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;
|
||
};
|
||
|
||
character = {
|
||
success_symbol = "[❯](bold green)";
|
||
error_symbol = "[X](bold red)";
|
||
vimcmd_symbol = "[N](bold green)";
|
||
vimcmd_replace_one_symbol = "[R](bold purple)";
|
||
vimcmd_replace_symbol = "[R](bold purple)";
|
||
vimcmd_visual_symbol = "[V](bold yellow)";
|
||
};
|
||
|
||
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"
|
||
];
|
||
};
|
||
};
|
||
}
|