From fb0b3ac7217d2f71536cd726cf089d8011178c4d Mon Sep 17 00:00:00 2001 From: Mitsuhiro Nakamura Date: Mon, 8 Oct 2018 09:28:53 +0900 Subject: [PATCH] nixos/fish: use 'escapeShellArg' for shell aliases --- nixos/modules/programs/fish.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/programs/fish.nix b/nixos/modules/programs/fish.nix index c3f742acde2e..5948fe11f92b 100644 --- a/nixos/modules/programs/fish.nix +++ b/nixos/modules/programs/fish.nix @@ -9,7 +9,7 @@ let cfg = config.programs.fish; fishAliases = concatStringsSep "\n" ( - mapAttrsFlatten (k: v: "alias ${k} '${v}'") cfg.shellAliases + mapAttrsFlatten (k: v: "alias ${k} ${escapeShellArg v}") cfg.shellAliases ); in