Skip to content

Commit

Permalink
[after-setup] install the default ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Aug 8, 2020
1 parent 5ce9e4a commit 9a44407
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions script/after-setup
Expand Up @@ -32,6 +32,13 @@ if [[ ! -d ~/.cargo ]]; then
curl https://sh.rustup.rs -sSf | sh -s -- -y --no-modify-path --default-toolchain nightly
fi

# Install the current default Ruby version
eval $(grep DEFAULT_RUBY_VERSION= zshrc)
if [[ ! -d "$HOME/.rubies/ruby-$DEFAULT_RUBY_VERSION" ]]; then
chruby install "$DEFAULT_RUBY_VERSION"
chruby reload
fi

# Copy youtube-dl to local bin so it can self-update
if [[ -f /usr/local/bin/youtube-dl ]]; then
cp /usr/local/bin/youtube-dl ~/.bin/
Expand Down

0 comments on commit 9a44407

Please sign in to comment.