/scalaenv

Groom your app’s Scala environment

Primary LanguageShellMIT LicenseMIT

scalaenv

Build Status

Groom your app’s Scala environment with scalaenv like rbenv :)

Do you need sbt and Play Framework version management?
Please refer to sbtenv in the case of use sbt, and playenv in the case of use Play Framework.

Installation

  1. git clone scalaenv into ~/.scalaenv.

    $ git clone git://github.com/mazgi/scalaenv.git ~/.scalaenv
  2. Add ~/.scalaenv/bin to your $PATH for access to the scalaenv command.

    $ echo 'export PATH="${HOME}/.scalaenv/bin:${PATH}"' >> ~/.zshrc
  3. Add scalaenv init to your shell to enable shims and autocompletion.

    $ echo 'eval "$(scalaenv init -)"' >> ~/.zshrc

    Bash note: Modify your ~/.bash_profile file instead of ~/.zshrc.

  4. Restart your shell so that PATH changes take effect. (Opening a new terminal tab will usually do it.) Now check if scalaenv was set up:

    $ type scalaenv
    #=> "scalaenv is a shell function"

    Same as in previous step, use ~/.bash_profile for Bash.

  5. Install each version of scala.

    $ scalaenv install scala-2.10.3

    If show all available version, please use the following command:

    $ scalaenv install -l
    All available versions:
    scala-2.10.1
    scala-2.10.2
    scala-2.10.3
    ...

    If want to install manually, please download scala archive and extract into ~/.scalaenv/versions/.

    $ curl -LO http://www.scala-lang.org/files/archive/scala-2.10.3.tgz
    $ tar xf scala-2.10.3.tgz -C ~/.scalaenv/versions/

Version History

0.0.7 (Nov 19, 2014)

  • Added recipes for Scala 2.11.1 - Scala 2.11.4 by @zaneli
  • Fixed a bug when run versions subcommand.

0.0.6 (Apr 18, 2014)

  • Added recipes for Scala 2.11.0 to scala-install built-in plugin.

0.0.5 (Apr 16, 2014)

  • Added recipes for Scala 2.10.4 and Scala 2.11.0-RCx to scala-install built-in plugin.
  • Added recipes for old versions to scala-install built-in plugin.

0.0.4 (Mar 25, 2014)

  • Improved installation instruction by scala-install built-in plugin.

0.0.3 (Mar 14, 2014)

  • Added Travis CI status badge on README.
  • Fixed a bug when run rehash subcommand.
  • Fixed version string.

0.0.2 (Mar 04, 2014)

  • Added completions for Z shell and Bash.

0.0.1 (Jan 28, 2014)

  • Initial public release.