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:
parent
70ac18872a
commit
491f74db89
2 changed files with 3 additions and 4 deletions
|
@ -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"}
|
||||||
|
|
|
@ -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 \
|
||||||
|
|
Loading…
Reference in a new issue