1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-10 21:29:48 +01:00

zellij: use full executable path

This commit is contained in:
Alexis (Poliorcetics) Bourget 2024-02-07 08:45:44 +01:00 committed by Mikilio
parent 4a785b0cef
commit 331dc328b2
No known key found for this signature in database
GPG key ID: 5B2F1A890CF33F3F
2 changed files with 7 additions and 6 deletions

View file

@ -6,6 +6,7 @@ let
cfg = config.programs.zellij;
yamlFormat = pkgs.formats.yaml { };
zellijCmd = getExe cfg.package;
in {
meta.maintainers = [ hm.maintainers.mainrs ];
@ -69,16 +70,16 @@ in {
};
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 ''
eval "$(zellij setup --generate-auto-start zsh)"
eval "$(${zellijCmd} setup --generate-auto-start zsh)"
'');
programs.fish.interactiveShellInit = mkIf cfg.enableFishIntegration
(mkOrder 200 ''
eval (zellij setup --generate-auto-start fish | string collect)
eval (${zellijCmd} setup --generate-auto-start fish | string collect)
'');
};
}

View file

@ -26,16 +26,16 @@
assertFileExists home-files/.bashrc
assertFileContains \
home-files/.bashrc \
'eval "$(zellij setup --generate-auto-start bash)"'
'eval "$(@zellij@/bin/dummy setup --generate-auto-start bash)"'
assertFileExists home-files/.zshrc
assertFileContains \
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
assertFileContains \
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)'
'';
}