{ lib, pkgs, ... }: { programs.starship = let flavor = "macchiato"; # One of `latte`, `frappe`, `macchiato`, or `mocha` in { enable = true; settings = { add_newline = true; format = lib.concatStrings [ "$sudo" "$all" ]; character.success_symbol = "[➜](bold purple)"; package.disabled = true; sudo = { symbol = "witch "; style = "bold blue"; format = "[$symbol]($style)"; disabled = false; }; hostname = { ssh_only = false; format = "[$hostname](bold yellow)[$ssh_symbol](bold blue):"; trim_at = ""; disabled = false; }; username = { show_always = true; format = "[$user]($style)@"; }; git_branch.style = "bold blue"; directory.style = "bold blue"; direnv.disabled = false; palette = "catppuccin_${flavor}"; } // builtins.fromTOML (builtins.readFile (pkgs.fetchFromGitHub { owner = "catppuccin"; repo = "starship"; rev = "5629d23"; # Replace with the latest commit hash sha256 = "sha256-nsRuxQFKbQkyEI4TXgvAjcroVdG+heKX5Pauq/4Ota0="; } + /palettes/${flavor}.toml)); }; }