From 732a1dca73efb2981077733cff5449eaa69895db Mon Sep 17 00:00:00 2001 From: Luflosi Date: Wed, 26 Feb 2025 17:02:53 +0100 Subject: [PATCH] nixos/pay-respects: fix "(eval):1: parse error near `alias'" The README of pay-respects recommends the following for Bash and Zsh: ```sh eval "$(pay-respects bash --alias)" eval "$(pay-respects zsh --alias)" ``` The code in the NixOS module is missing the quotes. This causes "(eval):1: parse error near `alias'" for me (using Zsh) and the alias `f` does not work. --- nixos/modules/programs/pay-respects.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/programs/pay-respects.nix b/nixos/modules/programs/pay-respects.nix index c44fec300851..5bd90b71f1b2 100644 --- a/nixos/modules/programs/pay-respects.nix +++ b/nixos/modules/programs/pay-respects.nix @@ -59,7 +59,7 @@ let shell: if (shell != "fish") then '' - eval $(${getExe finalPackage} ${shell} --alias ${cfg.alias}) + eval "$(${getExe finalPackage} ${shell} --alias ${cfg.alias})" '' else ''