install / use latest ruby, node and python
This commit is contained in:
parent
65c06b571b
commit
84e5d4a5c5
@ -16,9 +16,28 @@ brew upgrade
|
|||||||
brew cleanup
|
brew cleanup
|
||||||
brew cask cleanup
|
brew cask cleanup
|
||||||
|
|
||||||
# update gems
|
# update ruby + gems
|
||||||
|
LATEST_RUBY=$(rbenv install -l | grep -v - | awk '{print $1}'| tail -1)
|
||||||
|
if [ $LATEST_RUBY != $(rbenv global) ]; then
|
||||||
|
rbenv install $LATEST_RUBY
|
||||||
|
rbenv global $LATEST_RUBY
|
||||||
|
fi
|
||||||
gem update
|
gem update
|
||||||
|
|
||||||
|
# update stable node
|
||||||
|
LATEST_NODE=$(nodenv install -l |grep -v - |awk '{print $1}'|egrep '[02468]+\.\d*[0-9]\.[0-9]+'|tail -1)
|
||||||
|
if [ $LATEST_NODE != $(nodenv global) ]; then
|
||||||
|
nodenv install $LATEST_NODE
|
||||||
|
nodenv global $LATEST_NODE
|
||||||
|
fi
|
||||||
|
|
||||||
|
# update python
|
||||||
|
LATEST_PYTHON=$(pyenv install -l | grep -v - | awk '{print $1}'|egrep '^2'| tail -1)
|
||||||
|
if [ $LATEST_PYTHON != $(pyenv global) ]; then
|
||||||
|
pyenv install $LATEST_PYTHON
|
||||||
|
pyenv global $LATEST_PYTHON
|
||||||
|
fi
|
||||||
|
|
||||||
# update all repositories
|
# update all repositories
|
||||||
mr -j 5 update
|
mr -j 5 update
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user