-
Notifications
You must be signed in to change notification settings - Fork 2
/
install_language.sh
executable file
·68 lines (58 loc) · 1.42 KB
/
install_language.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
##################
# Language setup #
##################
# Node.js (and NVM)
echo "Installing node through NVM..."
echo
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
source $HOME/.bash_profile
nvm install stable
if is_osx; then
echo "Installing yarn through brew..."
echo
brew install yarn --without-node # Install yarn and use NVM's version
fi
npm install -g \
commitizen \
htmlhint \
jsonlint \
ndb \
np \
nps \
npm-check-updates \
react-devtools \
@storybook/cli
# Install OSX-only npm packages
if is_osx; then
npm install -g \
alfred-npms
fi
# Python (and Pyenv)
echo "Installing python through pyenv..."
echo
echo 'eval "$(pyenv init -)"' >> $HOME/.bash_profile # This will be overwritten after, just do it now to install global python packages
source $HOME/.bash_profile
pyenv install 2.7.12
pyenv install 3.5.2
pyenv global 3.5.2 2.7.12
pip install --upgrade pip setuptools
pip install --user \
glances \
neovim \
ipython \
restview \
twine \
virtualenv
# Ruby (and RVM)
echo "Installing ruby through rvm..."
echo
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
\curl -sSL https://get.rvm.io | bash -s stable --ruby
source $HOME/.bash_profile
gem install \
ghi \
lolcat \
pry \
screengif \
travis