Created
March 14, 2014 15:08
-
-
Save mwolson/9549551 to your computer and use it in GitHub Desktop.
Run local compiled version of node.js in a shell, or execute some code with it
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export NODE_EXEC=/proj/helpers/node/node | |
export V8_PATH=/proj/helpers/node/deps/v8/out/native | |
if test -z "$1"; then | |
export PATH=/proj/helpers/node:"$PATH" | |
echo "Now using node $(which node); Ctrl+D to exit" | |
$SHELL | |
else | |
exec $NODE_EXEC "$@" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment