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
This commit is contained in:
sheeaza 2021-10-28 13:23:58 +08:00
parent 8652402ac5
commit 30d581b29d

View File

@ -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
" "$@"
'')