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 a4abc2edd8
commit 2dbb25a9e3

View file

@ -1,5 +1,5 @@
# Common packages # Common packages
{ pkgs, ... }: { config, pkgs, ... }:
{ {
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
@ -13,7 +13,11 @@
]; ];
programs.vim.defaultEditor = true; # Modal editing is life 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. nixpkgs.config.allowUnfree = true; # Because I don't care *that* much.
} }