Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 23 lines 650 B view raw
1diff --git a/functions/fenv.apply.fish b/functions/fenv.apply.fish 2index 34a25e3..3d94135 100644 3--- a/functions/fenv.apply.fish 4+++ b/functions/fenv.apply.fish 5@@ -27,11 +27,17 @@ function fenv.apply 6 for variable in $variables 7 set key (echo $variable | sed 's/=.*//') 8 set value (echo $variable | sed 's/[^=]*=//') 9+ set ignore PATH _ 10 11 if test "$key" = 'PATH' 12 set value (echo $value | tr ':' '\n') 13 end 14 15- set -g -x $key $value 16+ if contains $key $ignore 17+ set -g -x $key $value 2>/dev/null 18+ else 19+ set -g -x $key $value 20+ end 21+ 22 end 23 end