diff options
| author | adikro <adikro@disroot.org> | 2025-12-20 03:14:45 +0100 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2025-12-20 03:14:45 +0100 |
| commit | 791bc419b6dac7c70951981ef6b34cdf85828470 (patch) | |
| tree | 56d0962fdf829ae942feb1344763e54dbc3c89a3 /hm/shell/starship.nix | |
| parent | e60410393cea222b16743a1a87f29c06b9b3543b (diff) | |
absolutely massive rewrite, made (almost) everything modular with changes to come
Diffstat (limited to 'hm/shell/starship.nix')
| -rw-r--r-- | hm/shell/starship.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/hm/shell/starship.nix b/hm/shell/starship.nix new file mode 100644 index 0000000..4996bdc --- /dev/null +++ b/hm/shell/starship.nix @@ -0,0 +1,49 @@ +{ config, lib, ... }: +let + cfg = config.szpont.hm.shell.starship; +in +{ + options.szpont.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"; + }; + }; + }; + }; +} |
