echo "=== Upgrade Packages ==="
brew update
brew upgrade
#decompress the file
brew install xz
# rbenv, Ruby 3.1.4, configure it
echo "=== Install Ruby ==="
brew install rbenv
rbenv install 3.1.4
rbenv global 3.1.4
echo 'if which rbenv > /dev/null; then eval "$(rbenv init - zsh)"; fi' >> ~/.zshrc
rbenv versions
# Python and Pip through Homebrew
echo "=== Install Python ==="
brew install python
# Jupyter Notebook through Homebrew
echo "=== Install Jupyter Notebook ==="
brew install jupyter
# Gems
export GEM_HOME="$HOME/gems"
export PATH="$HOME/gems/bin:$PATH"
echo 'export GEM_HOME="$HOME/gems"' >> ~/.zshrc
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.zshrc
gem install jekyll bundler