From cc54917efa5f19e56db65e0d2a0bb567cbdcb553 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 23 Jun 2021 20:01:58 +0200 Subject: [PATCH] fish_add_path: Explicitly set $PATH as global Fixes #8082 --- share/functions/fish_add_path.fish | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/share/functions/fish_add_path.fish b/share/functions/fish_add_path.fish index cc6ff15f6..6c0234426 100644 --- a/share/functions/fish_add_path.fish +++ b/share/functions/fish_add_path.fish @@ -29,7 +29,10 @@ function fish_add_path --description "Add paths to the PATH" end set -l var fish_user_paths - set -q _flag_path; and set var PATH + set -q _flag_path + and set var PATH + # $PATH should be global + and set scope -g set -l mode $_flag_prepend $_flag_append set -q mode[1]; or set mode -p