From 465d08d99f5b72b38cecb7ca1865b7255de3ee86 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Thu, 28 Feb 2019 11:29:16 +0100 Subject: [PATCH] programs/zsh: properly escape shell aliases Otherwise all aliases break that use single quotes inside. Already fixed in the nixpkgs module in 1e211a70cbdaf230a18ea4cb67a959039d5c2ddb. --- modules/programs/zsh.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/programs/zsh.nix b/modules/programs/zsh.nix index 1b7ccf7a..e7631309 100644 --- a/modules/programs/zsh.nix +++ b/modules/programs/zsh.nix @@ -15,7 +15,7 @@ let localVarsStr = config.lib.zsh.defineAll cfg.localVariables; aliasesStr = concatStringsSep "\n" ( - mapAttrsToList (k: v: "alias ${k}='${v}'") cfg.shellAliases + mapAttrsToList (k: v: "alias ${k}=${lib.escapeShellArg v}") cfg.shellAliases ); zdotdir = "$HOME/" + cfg.dotDir;