2017-07-08 04:27:18 +02:00
|
|
|
diff --git a/functions/fenv.apply.fish b/functions/fenv.apply.fish
|
2017-11-14 05:21:45 +01:00
|
|
|
index 34a25e3..3d94135 100644
|
2017-07-08 04:27:18 +02:00
|
|
|
--- a/functions/fenv.apply.fish
|
|
|
|
+++ b/functions/fenv.apply.fish
|
2017-11-14 05:21:45 +01: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 04:27:18 +02:00
|
|
|
|
|
|
|
if test "$key" = 'PATH'
|
|
|
|
set value (echo $value | tr ':' '\n')
|
2017-11-14 05:21:45 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
- set -g -x $key $value
|
|
|
|
+ if contains $key $ignore
|
2017-07-08 04:27:18 +02:00
|
|
|
+ set -g -x $key $value ^/dev/null
|
|
|
|
+ else
|
|
|
|
+ set -g -x $key $value
|
2017-11-14 05:21:45 +01:00
|
|
|
+ end
|
|
|
|
+
|
2017-07-08 04:27:18 +02:00
|
|
|
end
|
|
|
|
end
|