I faced the same issue mentioned in #1299, this PR fixes the issue by taking in account specific `set` and `unset` syntax for Fish shell. The post install instruction (i.e : `./emsdk activate latest`) provides wrong instructions in Fish shell and Cshell cases. This should be fixed by this PR too, although the code is a bit redundant and it could be more cleaner.
15 lines
326 B
Fish
15 lines
326 B
Fish
#In your Fish configuration, add this line:
|
|
#alias emsdk_setup ". /path/to/emsdk/emsdk_env.fish"
|
|
#Now, when you want to use the SDK, run this alias first to set up
|
|
#your environment.
|
|
|
|
set -gx EMSDK_FISH 1
|
|
|
|
set -l script (status -f)
|
|
set -l dir (dirname $script)
|
|
|
|
eval ($dir/emsdk construct_env)
|
|
|
|
set -e -l script
|
|
set -e -l dir
|