Merge pull request #48026 from mnacamura/fish-escapeshellarg

nixos/fish: use 'escapeShellArg' for shell aliases
This commit is contained in:
Silvan Mosberger 2018-10-11 21:14:39 +02:00 committed by GitHub
commit a232e5f13c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,7 @@ let
cfg = config.programs.fish; cfg = config.programs.fish;
fishAliases = concatStringsSep "\n" ( fishAliases = concatStringsSep "\n" (
mapAttrsFlatten (k: v: "alias ${k} '${v}'") cfg.shellAliases mapAttrsFlatten (k: v: "alias ${k} ${escapeShellArg v}") cfg.shellAliases
); );
in in