mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-15 14:09:17 +03:00
direnv: fix indentation of generated scripts (#409550)
This commit is contained in:
commit
5e5f2b56c6
1 changed files with 14 additions and 15 deletions
|
@ -132,8 +132,7 @@ in
|
||||||
'';
|
'';
|
||||||
|
|
||||||
fish.interactiveShellInit = lib.mkIf cfg.enableFishIntegration ''
|
fish.interactiveShellInit = lib.mkIf cfg.enableFishIntegration ''
|
||||||
if ${lib.boolToString cfg.loadInNixShell};
|
if ${lib.boolToString cfg.loadInNixShell}; or printenv PATH | grep -vqc '/nix/store';
|
||||||
or printenv PATH | grep -vqc '/nix/store';
|
|
||||||
${lib.getExe cfg.finalPackage} hook fish | source
|
${lib.getExe cfg.finalPackage} hook fish | source
|
||||||
end
|
end
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue