From 0bf96d85209e07711ff99bd6df2d0befc4d40f44 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Tue, 16 Dec 2025 20:39:35 -0500 Subject: make zshrc load much faster --- home/zsh/default.nix | 7 +++++-- home/zsh/zprofile | 3 --- home/zsh/zshrc | 4 +++- 3 files changed, 8 insertions(+), 6 deletions(-) (limited to 'home/zsh') diff --git a/home/zsh/default.nix b/home/zsh/default.nix index f6706af..92fd0ce 100644 --- a/home/zsh/default.nix +++ b/home/zsh/default.nix @@ -11,14 +11,17 @@ highlight = "fg=#${config.theme.colors.subtext}"; }; syntaxHighlighting.enable = true; + dotDir = "${config.xdg.configHome}/zsh"; + + # update conf history.size = 10000; profileExtra = lib.fileContents ./zprofile; initContent = lib.fileContents ./zshrc; - dotDir = "${config.xdg.configHome}/zsh"; + completionInit = ""; }; programs.zoxide = { enable = true; - enableZshIntegration = true; + enableZshIntegration = false; }; } diff --git a/home/zsh/zprofile b/home/zsh/zprofile index e159154..fc0fd72 100644 --- a/home/zsh/zprofile +++ b/home/zsh/zprofile @@ -3,6 +3,3 @@ if [ -n "$TMUX" ]; then return fi - -# setup homemanager -source /etc/profiles/per-user/"$USER"/etc/profile.d/hm-session-vars.sh diff --git a/home/zsh/zshrc b/home/zsh/zshrc index dbcc1cb..e9a1a10 100644 --- a/home/zsh/zshrc +++ b/home/zsh/zshrc @@ -28,9 +28,11 @@ fi bindkey -v tabs +# completion autoload compinit -compinit -d "$XDG_CACHE_HOME"/zsh/zcompdump-"$ZSH_VERSION" +compinit -C +# colors autoload -U colors && colors setopt promptsubst -- cgit v1.2.3-freya