2017-07-08 03:27:18 +01:00
|
|
|
diff --git a/functions/fenv.apply.fish b/functions/fenv.apply.fish
|
2017-11-14 04:21:45 +00:00
|
|
|
index 34a25e3..3d94135 100644
|
2017-07-08 03:27:18 +01:00
|
|
|
--- a/functions/fenv.apply.fish
|
|
|
|
+++ b/functions/fenv.apply.fish
|
2017-11-14 04:21:45 +00:00
|
|
|
@@ -27,11 +27,17 @@ function fenv.apply
|
|
|
|
for variable in $variables
|
|
|
|
set key (echo $variable | sed 's/=.*//')
|
|
|
|
set value (echo $variable | sed 's/[^=]*=//')
|
|
|
|
+ set ignore PATH _
|
2017-07-08 03:27:18 +01:00
|
|
|
|
|
|
|
if test "$key" = 'PATH'
|
|
|
|
set value (echo $value | tr ':' '\n')
|
2017-11-14 04:21:45 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
- set -g -x $key $value
|
|
|
|
+ if contains $key $ignore
|
2017-07-08 03:27:18 +01:00
|
|
|
+ set -g -x $key $value ^/dev/null
|
|
|
|
+ else
|
|
|
|
+ set -g -x $key $value
|
2017-11-14 04:21:45 +00:00
|
|
|
+ end
|
|
|
|
+
|
2017-07-08 03:27:18 +01:00
|
|
|
end
|
|
|
|
end
|