diff --git a/src/shell/env_test.go b/src/shell/env_test.go index 7e1d58a..16ef733 100644 --- a/src/shell/env_test.go +++ b/src/shell/env_test.go @@ -40,13 +40,13 @@ func TestEnvironmentVariable(t *testing.T) { Case: "FISH", Shell: FISH, Env: envs[String], - Expected: "set --global HELLO world", + Expected: "set --global --export HELLO world", }, { Case: "FISH Array", Shell: FISH, Env: envs[Array], - Expected: "set --global ARRAY hello array world", + Expected: "set --global --export ARRAY hello array world", }, { Case: "NU", diff --git a/src/shell/fish.go b/src/shell/fish.go index fb26ffc..3c8d185 100644 --- a/src/shell/fish.go +++ b/src/shell/fish.go @@ -18,7 +18,7 @@ end` } func (e *Env) fish() *Env { - e.template = `set --global {{ .Name }} {{ .Value }}` + e.template = `set --global --export {{ .Name }} {{ .Value }}` return e }