Skip to content

Commit 66bcd86

Browse files
committed
Install io.js & add aliases to switch to io/node
* Install `io.js`. https://iojs.org/en/index.html * Add aliases to easily switch between `io.js` and `Node.js`. https://gist.github.com/phelma/ce4eeeedb8fb9a9e8e63
1 parent 1f6ead4 commit 66bcd86

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.aliases

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,7 @@ alias afk="/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resource
139139

140140
# Reload the shell (i.e. invoke as a login shell)
141141
alias reload="exec $SHELL -l"
142+
143+
# Easily switch between `io.js` and `Node.js`
144+
alias use-iojs="brew unlink node && brew link --force iojs"
145+
alias use-node="brew unlink iojs && brew link --force node"

brew.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,5 +98,8 @@ brew install zopfli
9898
# installation method.
9999
brew install node
100100

101+
# Install io.js
102+
brew install iojs
103+
101104
# Remove outdated versions from the cellar.
102105
brew cleanup

0 commit comments

Comments
 (0)