64 lines
1.5 KiB
Nix
64 lines
1.5 KiB
Nix
{ pkgs, lib, ... }:
|
|
|
|
{
|
|
programs.bash.enable = true;
|
|
programs.bat = {
|
|
enable = true;
|
|
extraPackages = with pkgs.bat-extras; [ batdiff batman ];
|
|
};
|
|
programs.eza = {
|
|
enable = true;
|
|
icons = null;
|
|
};
|
|
programs.starship = {
|
|
enable = true;
|
|
settings = {
|
|
format = lib.concatStringsSep " " [
|
|
"$nix_shell"
|
|
"$directory"
|
|
"$git_branch"
|
|
"$git_status"
|
|
"$git_commit"
|
|
"$status"
|
|
"$fill"
|
|
"$lua"
|
|
"$rust"
|
|
"$golang"
|
|
"$haskell"
|
|
"$jobs"
|
|
"$cmd_duration"
|
|
"$line_break"
|
|
"$character"];
|
|
|
|
nix_shell.format = "[nix]($style)";
|
|
directory.truncation_length = 2;
|
|
git_branch = {
|
|
format = "[$branch(:$remote_branch)]($style)";
|
|
ignore_branches = ["master" "main"];
|
|
};
|
|
git_status.format = "([\\[$all_status$ahead_behind\\]]($style))";
|
|
git_commit.format = "[\\[#$hash$tag\\]]($style)";
|
|
status = {
|
|
format = "[\\[$status\\]]($style)";
|
|
disabled = false;
|
|
};
|
|
fill.symbol = " ";
|
|
lua = {
|
|
format = "[($version)]($style)";
|
|
version_format = "$major.$minor";
|
|
detect_files = [".lua-version" ".luarc.json"];
|
|
};
|
|
rust = {
|
|
format = "[($version)]($style)";
|
|
version_format = "$major.$minor";
|
|
};
|
|
haskell.format = "[($ghc_version)]($style)";
|
|
cmd_duration.format = "[$duration]($style) ";
|
|
character = {
|
|
success_symbol = "[>](bold #a6e3a1)";
|
|
error_symbol = "[>](bold #f38ba8)";
|
|
};
|
|
};
|
|
};
|
|
}
|