Added scripts to install ruby and jekyll

This commit is contained in:
pablo 2021-11-07 21:56:41 +01:00
parent e980dce814
commit 1b3dafa624
2 changed files with 19 additions and 0 deletions

7
install_jekyll.sh Normal file
View file

@ -0,0 +1,7 @@
#!/bin/bash
# Install jekyll and bundler
# Assuming that Ruby is already installed
gem install jekyll bundler

12
install_ruby.sh Normal file
View file

@ -0,0 +1,12 @@
#!/bin/bash
# Installs Ruby on the current user
apt-get install ruby-full build-essential
# Export some environment variables to bashrc
echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
echo "Done!"