From 30d581b29deabf668d793f3ee8b604895c4fcdf8 Mon Sep 17 00:00:00 2001 From: sheeaza Date: Thu, 28 Oct 2021 13:23:58 +0800 Subject: [PATCH] wrapFish: fix early variable expansion the bash script will retrieve the $var and cause the variable expand to empty add \ to prevent this, and let fish command to retrieve the variable --- pkgs/shells/fish/wrapper.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/shells/fish/wrapper.nix b/pkgs/shells/fish/wrapper.nix index 6713a69d560e..f978f2bdfa4d 100644 --- a/pkgs/shells/fish/wrapper.nix +++ b/pkgs/shells/fish/wrapper.nix @@ -20,6 +20,6 @@ in writeShellScriptBin "fish" '' set --prepend fish_complete_path ${escapeShellArgs complPath} set --prepend fish_function_path ${escapeShellArgs funcPath} set --local fish_conf_source_path ${escapeShellArgs confPath} - for c in $fish_conf_source_path/*; source $c; end + for c in \$fish_conf_source_path/*; source \$c; end " "$@" '')