mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
ddaea6ac77
These are not reaal shells and should go into their parent shell directory.
24 lines
649 B
Diff
24 lines
649 B
Diff
diff --git a/functions/fenv.apply.fish b/functions/fenv.apply.fish
|
|
index 34a25e3..3d94135 100644
|
|
--- a/functions/fenv.apply.fish
|
|
+++ b/functions/fenv.apply.fish
|
|
@@ -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 _
|
|
|
|
if test "$key" = 'PATH'
|
|
set value (echo $value | tr ':' '\n')
|
|
end
|
|
|
|
- set -g -x $key $value
|
|
+ if contains $key $ignore
|
|
+ set -g -x $key $value ^/dev/null
|
|
+ else
|
|
+ set -g -x $key $value
|
|
+ end
|
|
+
|
|
end
|
|
end
|