{ config, lib, ... }: let cfg = config.hm.shell.starship; in { options.hm.shell.starship.enable = lib.mkEnableOption "Starship prompt"; config = lib.mkIf cfg.enable { programs.starship = { enable = true; enableFishIntegration = true; settings = { add_newline = true; # format = lib.concatStrings [ # "$hostname" # "$directory" # "$git_branch" # "$git_status" # "$nix_shell" # "$python" # "$rust" # "$character" # ]; directory = { truncate_to_repo = false; read_only = ""; }; hostname.format = "[$hostname ]($style) "; python = { symbol = ""; format = "[$symbol ]($style)"; }; rust = { symbol = ""; }; nix_shell.format = "[$symbol$state ]($style)"; git_status = { conflicted = "󰦎"; ahead = ""; behind = ""; diverged = ""; renamed = ""; deleted = "x"; }; }; }; }; }