1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-19 17:49: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
programs.zsh.initExtraBeforeCompInit = ''
## home-manager/antidote begin :
source ${cfg.package}/antidote.zsh
source ${cfg.package}/share/antidote/antidote.zsh
${optionalString cfg.useFriendlyNames
"zstyle ':antidote:bundle' use-friendly-names 'yes'"}
bundlefile=${relToDotDir ".zsh_plugins.txt"}

View file

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