From 9538381d56272818cba77a808ba46fdac6c961c8 Mon Sep 17 00:00:00 2001 From: Shane Peelar Date: Mon, 18 Mar 2019 14:43:13 -0400 Subject: [PATCH] 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. --- emsdk_env.fish | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 emsdk_env.fish diff --git a/emsdk_env.fish b/emsdk_env.fish new file mode 100755 index 0000000..9f6e15a --- /dev/null +++ b/emsdk_env.fish @@ -0,0 +1,17 @@ +#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 -l script (status -f) +set -l dir (dirname $script) + +pushd $dir > /dev/null + +./emsdk construct_env "$argv" +. ./emsdk_set_env.sh + +set -e -l script +set -e -l dir + +popd > /dev/null