Skip to content

Commit c4b1c9b

Browse files
committed
fix: use a pipe instead of command subsitution to correctly run the comannd outputted by mise (rtx) env command with fish.
1 parent 3c50cf4 commit c4b1c9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/launch.fish

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ else
6262
set mise (which mise)
6363
if test -n "$mise"
6464
echo "mise executable found at $mise, activating" >&2
65-
source ( "$mise" env -s fish )
65+
"$mise" env -s fish | source
6666
export_stdlib_path "mise which elixir"
6767
else
6868
echo "mise not found" >&2
@@ -71,7 +71,7 @@ else
7171
set rtx (which rtx)
7272
if test -n "$rtx"
7373
echo "rtx executable found at $rtx, activating" >&2
74-
source ( "$rtx" env -s fish )
74+
"$rtx" env -s fish | source
7575
export_stdlib_path "rtx which elixir"
7676
else
7777
echo "rtx not found" >&2

0 commit comments

Comments
 (0)