summary refs log tree commit diff stats
path: root/system/settings/programs/shell.nix
blob: 62d512302459fed61bca390623d7c1af9a6339da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ config
, pkgs
, ...
}: {
  programs.zsh =
    {
      enable = 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;
      }
    );
  programs.bash.enableCompletion = true;
}