mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +01:00
bash: escape alias values
This should allow use of the apostrophe character within aliases without having to escape them manually. Fixes #273
This commit is contained in:
parent
dfaccdd03b
commit
10865f9952
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ in
|
||||||
config = (
|
config = (
|
||||||
let
|
let
|
||||||
aliasesStr = concatStringsSep "\n" (
|
aliasesStr = concatStringsSep "\n" (
|
||||||
mapAttrsToList (k: v: "alias ${k}='${v}'") cfg.shellAliases
|
mapAttrsToList (k: v: "alias ${k}=${escapeShellArg v}") cfg.shellAliases
|
||||||
);
|
);
|
||||||
|
|
||||||
shoptsStr = concatStringsSep "\n" (
|
shoptsStr = concatStringsSep "\n" (
|
||||||
|
|
Loading…
Reference in a new issue