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

antidote: fix package source path

Changes

  'source %antidote%/antidote.zsh'

to

  'source %antidote%/share/antidote/antidote.zsh'
This commit is contained in:
hitsmaxft 2023-06-23 11:14:48 +08:00 committed by Robert Helgesson
parent 70ac18872a
commit 491f74db89
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
2 changed files with 3 additions and 4 deletions

View file

@ -39,7 +39,7 @@ in {
### move zsh_plugins.txt ### move zsh_plugins.txt
programs.zsh.initExtraBeforeCompInit = '' programs.zsh.initExtraBeforeCompInit = ''
## home-manager/antidote begin : ## home-manager/antidote begin :
source ${cfg.package}/antidote.zsh source ${cfg.package}/share/antidote/antidote.zsh
${optionalString cfg.useFriendlyNames ${optionalString cfg.useFriendlyNames
"zstyle ':antidote:bundle' use-friendly-names 'yes'"} "zstyle ':antidote:bundle' use-friendly-names 'yes'"}
bundlefile=${relToDotDir ".zsh_plugins.txt"} bundlefile=${relToDotDir ".zsh_plugins.txt"}

View file

@ -1,7 +1,6 @@
{ ... }: { pkgs, ... }:
let relToDotDirCustom = ".zshplugins"; let relToDotDirCustom = ".zshplugins";
in { in {
programs.zsh = { programs.zsh = {
enable = true; enable = true;
@ -20,7 +19,7 @@ in {
nmt.script = '' nmt.script = ''
assertFileContains home-files/${relToDotDirCustom}/.zshrc \ assertFileContains home-files/${relToDotDirCustom}/.zshrc \
'source @antidote@/antidote.zsh' 'source @antidote@/share/antidote/antidote.zsh'
assertFileContains home-files/${relToDotDirCustom}/.zshrc \ assertFileContains home-files/${relToDotDirCustom}/.zshrc \
'antidote load' 'antidote load'
assertFileContains home-files/${relToDotDirCustom}/.zshrc \ assertFileContains home-files/${relToDotDirCustom}/.zshrc \