nixos/fish: prevent fish_indent from reading from config (#462969)

This commit is contained in:
Fernando Rodrigues
2025-11-18 21:06:00 +00:00
committed by GitHub
+3 -1
View File
@@ -26,13 +26,15 @@ let
envInteractiveShellInit = pkgs.writeText "interactiveShellInit" cfge.interactiveShellInit;
# Need to use --no-config to prevent fish_indent from trying to read from config
# See https://github.com/fish-shell/fish-shell/issues/12079
indentFishFile =
name: text:
pkgs.runCommand name {
nativeBuildInputs = [ cfg.package ];
inherit text;
passAsFile = [ "text" ];
} "fish_indent < $textPath > $out";
} "fish --no-config -c 'fish_indent $textPath' > $out";
sourceEnv =
file: