summary refs log tree commit diff
path: root/modules/home/shell.nix
blob: c5c9bc131cdd985e7030c21db8ed2bc3466390fe (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
{ pkgs, ... }:

let
  fishPlugin = p: {
    inherit (p) src;
    name = p.pname;
  };
in
{
  programs = {
    fish = {
      enable = true;
      interactiveShellInit = ''
        set fish_greeting
      '';
      plugins = with pkgs.fishPlugins; [
        (fishPlugin sponge)
        (fishPlugin colored-man-pages)
      ];
    };

    zoxide = {
      enable = true;
      enableFishIntegration = true;
    };
    starship = {
      enable = true;
      enableFishIntegration = true;

      settings = {
        # gcloud is always in the prompt when there's a valid auth key,
        # so it's always on, and shows my huge work email address,
        # which is 1) completely obvious 2) completely useless.
        # also the cloud icon is broken in my font! ☁️!
        gcloud.disabled = true;
      };
    };
    direnv = {
      enable = true;
    };
  };
}