writers.writeFish: avoid loading user config files

This makes the Fish interpreter ignore user configuration files.
This was not desirable for running scripts, especially system ones.
This commit is contained in:
pacien 2022-10-10 23:10:31 +02:00
parent bb49ddebc9
commit 0495b0217b

View file

@ -126,8 +126,8 @@ let
# echo hello world
# ''
writeFish = makeScriptWriter {
interpreter = "${pkgs.fish}/bin/fish";
check = "${pkgs.fish}/bin/fish --no-execute"; # syntax check only
interpreter = "${pkgs.fish}/bin/fish --no-config";
check = "${pkgs.fish}/bin/fish --no-config --no-execute"; # syntax check only
};
# Like writeScriptBin but the first line is a shebang to fish