modules: packages: prefer user compinit to global

This should make the shell startup faster.
This commit is contained in:
Bruno BELANYI 2021-04-07 20:05:15 +00:00
parent 75e3d9bf70
commit 6612d0226a

View file

@ -1,5 +1,5 @@
# Common packages
{ pkgs, ... }:
{ config, pkgs, ... }:
{
# List packages installed in system profile. To search, run:
@ -13,7 +13,11 @@
];
programs.vim.defaultEditor = true; # Modal editing is life
programs.zsh.enable = true; # Use integrations
programs.zsh = {
enable = true; # Use integrations
# Disable global compinit when a user config exists
enableGlobalCompInit = !config.my.home.zsh.enable;
};
nixpkgs.config.allowUnfree = true; # Because I don't care *that* much.
}