1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-18 17:19:45 +01:00

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.
This commit is contained in:
hitsmaxft 2023-06-23 22:13:58 +08:00 committed by Robert Helgesson
parent 0ee5ab611d
commit 3bc1bc4012
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -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