Last active
May 8, 2026 07:01
-
-
Save sachin21/eecd241ecf420323fe388de155a02658 to your computer and use it in GitHub Desktop.
Programming Language Installers
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
| #!/usr/bin/env bash | |
| set -e | |
| for TARGET_VERSION in $@; do | |
| if MAKE_OPTS="-j $(nproc)" MAKEOPTS="-j $(nproc)" 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 |
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
| #!/usr/bin/env bash | |
| set -e | |
| for TARGET_VERSION in $@; do | |
| if MAKE_OPTS="-j $(nproc)" MAKEOPTS="-j $(nproc)" pyenv install $TARGET_VERSION; then | |
| pyenv global $TARGET_VERSION | |
| pip install wheel | |
| pip install neovim | |
| echo "python $TARGET_VERSION is successfully installed" | |
| else | |
| echo "[Error] python $TARGET_VERSION is unsuccessfully installed" | |
| fi | |
| done |
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
| #!/usr/bin/env bash | |
| set -e | |
| for TARGET_VERSION in $@; do | |
| command="rbenv install $TARGET_VERSION" | |
| if eval "$command" && rbenv global $TARGET_VERSION; then | |
| gem install awesome_print | |
| gem install neovim | |
| gem install pry | |
| gem install pry-byebug | |
| gem install pry-doc | |
| 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