1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

programs/nix-search-tv: add quotes

Add quotes to the preview command to prevent the shell from interpreting
options with `<name>` as writing the output of the command name to a
file with the name of the remainder of the option name.
This commit is contained in:
Poseidon 2025-08-19 14:40:42 -05:00 committed by Austin Horstman
parent c2977f8bca
commit 3c3510e61c
2 changed files with 2 additions and 2 deletions

View file

@ -72,7 +72,7 @@ in
};
source.command = "${path} print";
preview.command = "${path} preview {}";
preview.command = ''${path} preview "{}"'';
}
);

View file

@ -13,7 +13,7 @@
name = "nix-search-tv"
[preview]
command = "${lib.getExe pkgs.nix-search-tv} preview {}"
command = "${lib.getExe pkgs.nix-search-tv} preview \"{}\""
[source]
command = "${lib.getExe pkgs.nix-search-tv} print"