Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

Latest commit

 

History

History
56 lines (29 loc) · 1.56 KB

README.markdown

File metadata and controls

56 lines (29 loc) · 1.56 KB

Scala Version Manager

Simple bash script to manage multiple active scala versions

Installation

To install create a folder somewhere in your filesystem with the "svm.sh" file inside it. To install to a folder called ".svm"

mkdir -p ~/.svm && curl "https://github.com/aleks-sidorenko/svm/raw/svm/svm.sh" -o ~/.svm/svm.sh

Or if you have git installed, then just clone it

git clone -b svm git://github.com/toolbear/svm.git ~/.svm

To activate svm, you need to source it from your bash shell

. ~/.svm/svm.sh

Add this line to ~/.bashrc or ~/.profile file to have it automatically sourced upon login.

Usage

To download and install the 2.8.1.final release of scala, do this:

svm install v2.8.1.final

And then in any new shell just use the installed version:

svm use v2.8.1.final

If you want to see what versions are available:

svm ls

To restore your PATH, you can deactivate it.

svm deactivate

To set a default Scala version to be used in any new shell, use the alias 'default':

svm alias default v2.8.1.final

For full commands and more more usage examples:

svm help

Alternatives

Attribution

Based on Node Version Manager by Tim Caswell