nixos/home/starship.nix

99 lines
2.5 KiB
Nix
Raw Normal View History

{ catppuccin-themes, ... }:
{
programs.starship = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
settings = {
inherit (builtins.fromTOML (builtins.readFile catppuccin-themes.starship))
palettes;
command_timeout = 1000;
add_newline = true;
palette = "catppuccin_macchiato";
character = {
2023-09-18 10:25:49 +01:00
success_symbol = "[[󱢠](green) ](maroon)";
error_symbol = "[󰅂](red)";
vimcmd_symbol = "[󰅁](green)";
};
directory = {
2023-09-18 10:25:49 +01:00
truncation_length = 2;
fish_style_pwd_dir_length = 1;
2023-09-18 10:25:49 +01:00
read_only = " 󰉐";
style = "bold lavender";
2023-09-18 10:25:49 +01:00
truncate_to_repo = false;
before_repo_root_style = "bold lavender";
repo_root_style = "bold teal";
};
line_break.disabled = false;
2023-09-18 09:18:11 +01:00
git_branch = {
symbol = "󰘬";
only_attached = true;
ignore_branches = [ "master" "main" ];
};
git_commit = {
format = "[󰜘 $hash$tag]($style) ";
tag_symbol = "󰓹";
tag_disabled = false;
};
git_metrics.disabled = false;
hostname = {
ssh_only = true;
ssh_symbol = "󰢹 ";
style = "bold green";
};
2023-09-18 10:25:49 +01:00
localip.disabled = false;
memory_usage = {
disabled = false;
symbol = "󰍛 ";
};
2023-09-18 10:25:49 +01:00
nix_shell.symbol = "󱄅 ";
os = {
disabled = false;
format = "on [$symbol $name ]($style)";
style = "bold blue";
symbols = {
Alpine = " ";
Android = " ";
Arch = " ";
CentOS = " ";
Debian = " ";
EndeavourOS = " ";
Fedora = " ";
FreeBSD = " ";
Gentoo = " ";
Illumos = " ";
Linux = " ";
Macos = " ";
Manjaro = " ";
Mint = "󰣭 ";
NixOS = " ";
OpenBSD = " ";
openSUSE = " ";
Pop = " ";
Raspbian = " ";
Redhat = " ";
RedHatEnterprise = " ";
Solus = " ";
SUSE = " ";
Ubuntu = " ";
Unknown = " ";
Windows = " ";
};
};
python = {
symbol = "󰌠 ";
python_binary = "python3";
};
shell = {
disabled = false;
format = "using [$indicator ]($style)";
};
sudo = {
disabled = false;
symbol = "󰪋 ";
};
};
};
}