Skip to content
/ svm Public

Scala Version Manager - Simple bash script to manage multiple active scala versions

Notifications You must be signed in to change notification settings

codedmart/svm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 

Repository files navigation

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/toolbear/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

About

Scala Version Manager - Simple bash script to manage multiple active scala versions

Resources

Stars

Watchers

Forks

Packages

No packages published