Files

247 lines
5.1 KiB
Nix
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{ lib, ... }:
{
#
home-manager.users.djai.programs.starship = {
enable = true;
settings = {
add_newline = false;
command_timeout = 10;
format = lib.concatStrings [
"$username"
"$hostname"
"$localip"
"$shlvl"
"$singularity"
"$kubernetes"
"$sudo"
"$directory"
"$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"
"$cmd_duration"
"$line_break"
"$jobs"
"$battery"
"$time"
"$status"
"$os"
"$container"
"$shell"
"$character"
];
battery = {
full_symbol = "󰁹 ";
charging_symbol = "󰂄 ";
discharging_symbol = "󰚌 ";
format = "[$symbol$percentage]($style) ";
disabled = false;
display = [
{ threshold = 10; style = "red bold";}
{ threshold = 30; style = "yellow";}
{ threshold = 50; style = "green";}
];
};
c = {
format = "via [$symbol]($style)";
symbol = " ";
};
character = {
success_symbol = " [❯](bold green)";
error_symbol = " [❯](bold #ff0000)";
vimcmd_symbol = " [❮](bold green)";
vimcmd_replace_one_symbol = " [❮](bold purple)";
vimcmd_replace_symbol = " [❮](bold purple)";
vimcmd_visual_symbol = " [❮](bold yellow)";
};
cmd_duration = {
min_time = 500;
show_milliseconds = true;
format = "took [$duration]($style)";
};
directory = {
truncation_length = 5;
truncate_to_repo = false;
read_only = "() ";
read_only_style = "#ff0000 bold";
style = "bold cyan";
format = "in [$path]($style) [$read_only]($read_only_style)";
truncation_symbol = "../";
home_symbol = "~";
substitutions = {
"/Music" = "/";
"Documents" = "";
"Downloads" = "󰉍";
"Pictures" = "";
"Videos" = "";
};
};
git_status = {
format = "[($all_status$ahead_behind)]($style) ";
};
haskell = {
format = "via [$symbol]($style)";
};
hostname = {
format = "[$ssh_symbol$hostname]($style) ";
};
java = {
symbol = " ";
format = "via [$symbol]($style)";
style = "#ff4646";
};
jobs = {
symbol = " ";
};
line_break = {
disabled = false;
};
memory_usage = {
threshold = 50;
disabled = false;
format = "using $symbol [$ram \\($ram_pct\\)]($style) ";
symbol = "󰍛";
};
nodejs = {
symbol ="󰎙 ";
style = "bold green";
format = "via [$symbol]($style)";
};
os = {
disabled = false;
style = "bold red";
format = "on [$symbol](blue bold) [$name]($style)";
symbols = {
Arch = "";
Debian = "";
EndeavourOS = "";
Linux = "";
Manjaro = "";
NixOS = "";
Pop = "";
Raspbian = "";
Ubuntu = "";
Unknown = "";
Windows = "󰇷";
};
};
package = {
disabled = true ;
};
python = {
symbol = " ";
style = "bold green";
format = "via [$symbol( )(\\($virtualenv\\) )]($style)";
};
rlang = {
symbol = "ﳒ ";
style = "blue bold";
format = "via [$symbol]($style)";
};
rust = {
symbol = " ";
style = "bold red";
format = "via [$symbol]($style)";
};
shell = {
disabled = true;
bash_indicator = "";
fish_indicator = "󰈺";
};
sudo = {
symbol = "";
disabled = false;
format = "\\([root]($style)\\) ";
style = "#ff0000";
};
username = {
show_always = true;
format = "[$user]($style) ";
};
};
};
}