zellij: use full executable path
This commit is contained in:
parent
f99eace7c1
commit
5b9156fa9a
|
@ -6,6 +6,7 @@ let
|
||||||
|
|
||||||
cfg = config.programs.zellij;
|
cfg = config.programs.zellij;
|
||||||
yamlFormat = pkgs.formats.yaml { };
|
yamlFormat = pkgs.formats.yaml { };
|
||||||
|
zellijCmd = getExe cfg.package;
|
||||||
|
|
||||||
in {
|
in {
|
||||||
meta.maintainers = [ hm.maintainers.mainrs ];
|
meta.maintainers = [ hm.maintainers.mainrs ];
|
||||||
|
@ -69,16 +70,16 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.bash.initExtra = mkIf cfg.enableBashIntegration (mkOrder 200 ''
|
programs.bash.initExtra = mkIf cfg.enableBashIntegration (mkOrder 200 ''
|
||||||
eval "$(zellij setup --generate-auto-start bash)"
|
eval "$(${zellijCmd} setup --generate-auto-start bash)"
|
||||||
'');
|
'');
|
||||||
|
|
||||||
programs.zsh.initExtra = mkIf cfg.enableZshIntegration (mkOrder 200 ''
|
programs.zsh.initExtra = mkIf cfg.enableZshIntegration (mkOrder 200 ''
|
||||||
eval "$(zellij setup --generate-auto-start zsh)"
|
eval "$(${zellijCmd} setup --generate-auto-start zsh)"
|
||||||
'');
|
'');
|
||||||
|
|
||||||
programs.fish.interactiveShellInit = mkIf cfg.enableFishIntegration
|
programs.fish.interactiveShellInit = mkIf cfg.enableFishIntegration
|
||||||
(mkOrder 200 ''
|
(mkOrder 200 ''
|
||||||
eval (zellij setup --generate-auto-start fish | string collect)
|
eval (${zellijCmd} setup --generate-auto-start fish | string collect)
|
||||||
'');
|
'');
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,16 +26,16 @@
|
||||||
assertFileExists home-files/.bashrc
|
assertFileExists home-files/.bashrc
|
||||||
assertFileContains \
|
assertFileContains \
|
||||||
home-files/.bashrc \
|
home-files/.bashrc \
|
||||||
'eval "$(zellij setup --generate-auto-start bash)"'
|
'eval "$(@zellij@/bin/dummy setup --generate-auto-start bash)"'
|
||||||
|
|
||||||
assertFileExists home-files/.zshrc
|
assertFileExists home-files/.zshrc
|
||||||
assertFileContains \
|
assertFileContains \
|
||||||
home-files/.zshrc \
|
home-files/.zshrc \
|
||||||
'eval "$(zellij setup --generate-auto-start zsh)"'
|
'eval "$(@zellij@/bin/dummy setup --generate-auto-start zsh)"'
|
||||||
|
|
||||||
assertFileExists home-files/.config/fish/config.fish
|
assertFileExists home-files/.config/fish/config.fish
|
||||||
assertFileContains \
|
assertFileContains \
|
||||||
home-files/.config/fish/config.fish \
|
home-files/.config/fish/config.fish \
|
||||||
'eval (zellij setup --generate-auto-start fish | string collect)'
|
'eval (@zellij@/bin/dummy setup --generate-auto-start fish | string collect)'
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue