aboutsummaryrefslogtreecommitdiff
path: root/home/programs/starship.nix
blob: d3f4359888fee7dbfef872a56f083692e42d2936 (plain) (blame)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{ ... }:
{
  programs.starship = {
    enable = true;
    settings = {
      add_newline = false;
      palette = "catppuccin_mocha";
      character = {
        success_symbol = "[›](bold green)";
        error_symbol = "[›](bold red)";
      };
      directory = {
        fish_style_pwd_dir_length = 3;
      };
      git_branch = {
        symbol = "🌱 ";
      };
      git_commit = {
        commit_hash_length = 4;
      };
      git_status = {
        deleted = "✗";
        modified = "✶";
        staged = "✓";
        stashed = "≡";
      };
      "$schema" = "https://starship.rs/config-schema.json";
      hostname = {
        ssh_only = true;
      };
      username = {
        disabled = true;
      };
      kubernetes = {
        disabled = false;
        style = "bold blue";
      };
      # https://github.com/catppuccin/starship/blob/main/starship.toml
      palettes.catppuccin_mocha = {
        rosewater = "#f5e0dc";
        flamingo = "#f2cdcd";
        pink = "#f5c2e7";
        mauve = "#cba6f7";
        red = "#f38ba8";
        maroon = "#eba0ac";
        peach = "#fab387";
        yellow = "#f9e2af";
        green = "#a6e3a1";
        teal = "#94e2d5";
        sky = "#89dceb";
        sapphire = "#74c7ec";
        blue = "#89b4fa";
        lavender = "#b4befe";
        text = "#cdd6f4";
        subtext1 = "#bac2de";
        subtext0 = "#a6adc8";
        overlay2 = "#9399b2";
        overlay1 = "#7f849c";
        overlay0 = "#6c7086";
        surface2 = "#585b70";
        surface1 = "#45475a";
        surface0 = "#313244";
        base = "#1e1e2e";
        mantle = "#181825";
        crust = "#11111b";
      };
      nix_shell.disabled = false;
    };
  };
}