diff --git a/.aliases b/.aliases index daca01b..402535e 100644 --- a/.aliases +++ b/.aliases @@ -139,3 +139,7 @@ alias afk="/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resource # Reload the shell (i.e. invoke as a login shell) alias reload="exec $SHELL -l" + +# Easily switch between `io.js` and `Node.js` +alias use-iojs="brew unlink node && brew link --force iojs" +alias use-node="brew unlink iojs && brew link --force node" diff --git a/brew.sh b/brew.sh index 39a317e..994bdbc 100755 --- a/brew.sh +++ b/brew.sh @@ -98,5 +98,8 @@ brew install zopfli # installation method. brew install node +# Install io.js +brew install iojs + # Remove outdated versions from the cellar. brew cleanup