summaryrefslogtreecommitdiffstats
path: root/common/commandline/starship.nix
blob: cb126114709a42ef9dd0cf90aa984353e47f0c8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
_inputs:
{ lib, pkgs, ... }:
{
  users.extraUsers.minijackson.packages = [ pkgs.sd ];

  home-manager.sharedModules = [
    {
      programs.starship = {
        enable = true;
        enableZshIntegration = true;

        settings = lib.mkMerge [
          {
            directory = {
              fish_style_pwd_dir_length = 2;
              repo_root_style = "bold cyan";
              style = "bold white";
              truncate_to_repo = false;
            };

            hostname = {
              ssh_symbol = "ssh ";
              style = "bold blue";
            };

            jobs.symbol = "+ ";

            nix_shell.style = "bold blue";
            package.style = "bold green";
            rust.style = "bold dimmed yellow";

            custom = {
              jj = {
                detect_folders = [ ".jj" ];
                symbol = "jj ";
              };
            };
          }

          (lib.importTOML ./starship-plain-text-symbols.toml)
        ];
      };
    }
  ];
}