From 3bc1bc40121eb0975dc3d96741300bb4fd16be29 Mon Sep 17 00:00:00 2001 From: hitsmaxft Date: Fri, 23 Jun 2023 22:13:58 +0800 Subject: [PATCH] antidote: fix .dot path Add $HOME to pin .zsh_plugin path, prevents antidote from creating empty .zsh_plugins.txt in pwd while new zsh process starting. --- modules/programs/antidote.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/programs/antidote.nix b/modules/programs/antidote.nix index a26c47928..2c4a14d1f 100644 --- a/modules/programs/antidote.nix +++ b/modules/programs/antidote.nix @@ -42,9 +42,9 @@ in { source ${cfg.package}/share/antidote/antidote.zsh ${optionalString cfg.useFriendlyNames "zstyle ':antidote:bundle' use-friendly-names 'yes'"} - bundlefile=${relToDotDir ".zsh_plugins.txt"} + bundlefile=$HOME/${relToDotDir ".zsh_plugins.txt"} zstyle ':antidote:bundle' file $bundlefile - staticfile=${relToDotDir ".zsh_plugins.zsh"} + staticfile=$HOME/${relToDotDir ".zsh_plugins.zsh"} zstyle ':antidote:static' file $staticfile antidote load $bundlefile $staticfile ## home-manager/antidote end