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:
parent
bb49ddebc9
commit
0495b0217b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user