3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/shells/fish-foreign-env/hide-path-warnings.patch

17 lines
434 B
Diff

diff --git a/functions/fenv.apply.fish b/functions/fenv.apply.fish
index 34a25e3..6837e7f 100644
--- a/functions/fenv.apply.fish
+++ b/functions/fenv.apply.fish
@@ -30,8 +30,9 @@ function fenv.apply
if test "$key" = 'PATH'
set value (echo $value | tr ':' '\n')
+ set -g -x $key $value ^/dev/null
+ else
+ set -g -x $key $value
end
-
- set -g -x $key $value
end
end