Skip to content

Commit

Permalink
fix(fish): export variables
Browse files Browse the repository at this point in the history
resolves #158
  • Loading branch information
JanDeDobbeleer committed Sep 19, 2024
1 parent f0337b8 commit 9f95479
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/shell/env_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/shell/fish.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 9f95479

Please sign in to comment.