summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2023-11-30 21:04:52 +0100
committerMinijackson <minijackson@riseup.net>2023-11-30 21:04:52 +0100
commit86e9626af0087c3540f9f1d99324618817bae161 (patch)
treedd2f991c5bbccad6910da8ce3b7e60233c59de1d /common
parent216210cbb4096d3bd6488bde8216fe56ba48c0a9 (diff)
downloadnixos-config-reborn-86e9626af0087c3540f9f1d99324618817bae161.tar.gz
nixos-config-reborn-86e9626af0087c3540f9f1d99324618817bae161.zip
zsh: disable function subdirs
makes zsh really slow to boot
Diffstat (limited to 'common')
-rw-r--r--common/commandline/zsh.nix36
1 files changed, 26 insertions, 10 deletions
diff --git a/common/commandline/zsh.nix b/common/commandline/zsh.nix
index 1110bf2..f11cb37 100644
--- a/common/commandline/zsh.nix
+++ b/common/commandline/zsh.nix
@@ -1,12 +1,28 @@
1inputs: 1inputs: {
2 2 config,
3{ config, lib, pkgs, ... }: 3 lib,
4 4 pkgs,
5with inputs.self.lib.theme; 5 ...
6let 6}:
7with inputs.self.lib.theme; let
7 dominantEscapeCode = fgEscapeCode config.theme.colors.dominant; 8 dominantEscapeCode = fgEscapeCode config.theme.colors.dominant;
8in 9in {
9{ 10 nixpkgs.overlays = [
11 (final: prev: {
12 zsh = prev.zsh.overrideAttrs (old: {
13 configureFlags = [
14 "--enable-maildir-support"
15 "--enable-multibyte"
16 "--with-tcsetpgrp"
17 "--enable-pcre"
18 "--enable-zshenv=/1rz4g4znpzjwh1xymhjpm42vipw92pr73vdgl6xs1hycac8kf2n9/etc/zshenv"
19 "--disable-site-fndir"
20 # "--enable-function-subdirs"
21 ];
22 });
23 })
24 ];
25
10 programs.zsh = { 26 programs.zsh = {
11 enable = true; 27 enable = true;
12 28
@@ -40,7 +56,7 @@ in
40 56
41 syntaxHighlighting = { 57 syntaxHighlighting = {
42 enable = true; 58 enable = true;
43 highlighters = [ "main" "brackets" "line" ]; 59 highlighters = ["main" "brackets" "line"];
44 }; 60 };
45 61
46 shellAliases = { 62 shellAliases = {
@@ -69,7 +85,7 @@ in
69 85
70 # XDG 86 # XDG
71 dotDir = ".config/zsh"; 87 dotDir = ".config/zsh";
72 history.path = "${config.xdg.dataHome}/zsh/zsh_history"; 88 history.path = "${config.xdg.dataHome}/zsh/zsh_history";
73 89
74 plugins = [ 90 plugins = [
75 { 91 {