summary refs log tree commit diff
path: root/modules/home/shell.nix
blob: 5aa3a5472c29658dbd74ec8b0fc00850717e7150 (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
{ 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;
    };
    direnv = {
      enable = true;
    };
  };
}