summary refs log tree commit diff stats
path: root/system/settings/programs/shell.nix
blob: 3c8c3f4f02d03d566dca9ad445327b07ba4b6577 (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
{ config
, pkgs
, ...
}: {
  programs.zsh =
    {
      enable = true;
      enableBashCompletion = true;
      promptInit = "";
    }
    // (
      # Either of these will call `compinit`, causing >2s startup time
      # Do it in home-manager instead
      if pkgs.stdenv.isDarwin
      then {
        enableCompletion = false;
      } else {
        enableGlobalCompInit = false;
      }
    );
  environment.shells = with pkgs; [
    zsh
    fish
  ];
  programs.fish = {
    enable = true;
  };
  users.users.alan.shell = pkgs.fish;
}