Groom your sbt environment.
Groom your sbt environment.
Do you need Scala version management?
Please refer to scalaenv in the case of use Scala.
git clone
sbtenv into ~/.sbtenv
.
$ git clone git://github.com/sbtenv/sbtenv.git ~/.sbtenv
Add ~/.sbtenv/bin
to your $PATH
for access to the sbtenv
command.
$ echo 'export PATH="${HOME}/.sbtenv/bin:${PATH}"' >> ~/.zshrc
Add sbtenv init
to your shell to enable shims and autocompletion.
$ echo 'eval "$(sbtenv init -)"' >> ~/.zshrc
Bash note: Modify your ~/.bash_profile
file instead of ~/.zshrc
.
Restart your shell so that PATH changes take effect. (Opening a new terminal tab will usually do it.) Now check if sbtenv was set up:
$ type sbtenv
#=> "sbtenv is a shell function"
Same as in previous step, use ~/.bash_profile
for Bash.
Install each version of sbt.
$ sbtenv install sbt-0.13.1
If show all available version, please use the following command:
$ sbtenv install -l
All available versions:
sbt-0.12.1
sbt-0.12.2
sbt-0.12.3
...
If want to install manually, please download sbt archive and extract into ~/.sbtenv/versions/
.
$ curl -LO http://repo.scala-sbt.org/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.13.1/sbt.tgz
$ mkdir -p ~/.sbtenv/versions/sbt-0.13.1
$ tar xf sbt.tgz -C ~/.sbtenv/versions/sbt-0.13.1/
0.0.24 (May 13, 2021)
0.0.23 (Apr 27, 2021)
0.0.22 (Apr 4, 2021)
0.0.21 (Mar 22, 2021)
0.0.20 (Mar 16, 2021)
0.0.19 (Mar 11, 2021)
0.0.18 (Mar 8, 2021)
0.0.17 (Jan 31, 2021)
0.0.16 (Jan 5, 2021)
0.0.15 (Jul 11, 2018)
0.0.14 (Mar 03, 2018)
0.0.13 (Jun 27, 2017)
0.0.12 (Dec 26, 2016)
0.0.11 (Aug 24, 2016)
0.0.10 (Mar 16, 2016)
0.0.9 (Aug 25, 2015)
0.0.8 (Aug 06, 2014)
0.0.7 (May 24, 2014)
build.properties
file.versions
subcommand.0.0.6 (Apr 15, 2014)
0.0.5 (Mar 25, 2014)
0.0.4 (Mar 14, 2014)
rehash
subcommand.0.0.3 (Mar 06, 2014)
0.0.2 (Mar 04, 2014)
Z shell
and Bash
.0.0.1 (Jan 30, 2014)
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!