mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-06 08:46:54 +00:00
programs/zsh: properly escape shell aliases
Otherwise all aliases break that use single quotes inside.
Already fixed in the nixpkgs module in 1e211a70cbdaf230a18ea4cb67a959039d5c2ddb.
(cherry picked from commit 465d08d99f
)
This commit is contained in:
parent
dd94a849df
commit
3c2823e3cd
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue