1diff --git a/share/config.fish b/share/config.fish
2index d85fd1e185..c564e45b27 100644
3--- a/share/config.fish
4+++ b/share/config.fish
5@@ -158,6 +158,7 @@
6 #
7 if status --is-login
8 if command -sq /usr/libexec/path_helper
9+ and not set -q __NIX_DARWIN_SET_ENVIRONMENT_DONE
10 # Adapt construct_path from the macOS /usr/libexec/path_helper
11 # executable for fish; see
12 # https://opensource.apple.com/source/shell_cmds/shell_cmds-203/path_helper/path_helper.c.auto.html .