Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Programming Language Installers
#!/usr/bin/env bash
set -e
export MAKE_OPTS="-j $(nproc)"
for TARGET_VERSION in $@; do
if nodenv install $TARGET_VERSION && nodenv global $TARGET_VERSION; then
npm install --global npm@latest
npm install --global neovim
npm install --global js-beautify
npm rehash
echo "nodejs $TARGET_VERSION was successfully installed"
else
echo "[Error] nodejs $TARGET_VERSION is unsuccessfully installed"
fi
done
#!/usr/bin/env bash
set -e
export MAKE_OPTS="-j $(nproc)"
for TARGET_VERSION in $@; do
if CFLAGS=-I/usr/include/openssl LDFLAGS=-L/usr/lib pyenv install $TARGET_VERSION && pyenv global $TARGET_VERSION; then
pip install docutils
pip install pandas
pip install neovim
pip install pygments
pip install pygments-style-solarized
echo "Python $TARGET_VERSION was successfully installed"
else
echo "[Error] Python $TARGET_VERSION is unsuccessfully installed"
fi
done
#!/usr/bin/env bash
set -e
export MAKE_OPTS="-j $(nproc)"
for TARGET_VERSION in $@; do
if [[ $OSTYPE == darwin* ]]; then
command="CONFIGURE_OPTS='--with-readline-dir=$(brew --prefix) --with-openssl-dir=$(brew --prefix openssl)' RUBY_CONFIGURE_OPTS='--with-openssl-dir=$(brew --prefix openssl)' rbenv install $TARGET_VERSION"
else
command="rbenv install $TARGET_VERSION"
fi
if eval $command && rbenv global $TARGET_VERSION; then
gem install awesome_print
gem install bundler
gem install css2sass
gem install html2haml
gem install js2coffee
gem install neovim
gem install pry
gem install pry-byebug
gem install pry-doc
gem install ripper-tags
gem install space2dash
gem install space2dot
gem install space2underscore
rbenv rehash
echo "Ruby $TARGET_VERSION was successfully installed"
else
echo "[Error] Ruby $TARGET_VERSION is unsuccessfully installed"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment