Skip to content

Commit 9538381

Browse files
InBetweenNameskripken
authored andcommitted
Support Fish shell (emsdk_env) (#214)
Fish shell doesn't support the same syntax as most shells, so add an emsdk_env.fish to support these users. Instructions included in the file.
1 parent 590e7bb commit 9538381

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

emsdk_env.fish

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#In your Fish configuration, add this line:
2+
#alias emsdk_setup ". /path/to/emsdk/emsdk_env.fish"
3+
#Now, when you want to use the SDK, run this alias first to set up
4+
#your environment.
5+
6+
set -l script (status -f)
7+
set -l dir (dirname $script)
8+
9+
pushd $dir > /dev/null
10+
11+
./emsdk construct_env "$argv"
12+
. ./emsdk_set_env.sh
13+
14+
set -e -l script
15+
set -e -l dir
16+
17+
popd > /dev/null

0 commit comments

Comments
 (0)