Coder Social home page Coder Social logo

akiatoji / brew-scala-switcher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lieldulev/brew-scala-switcher

0.0 2.0 0.0 5 KB

A utility script to switch between Scala version installed using Homebrew. (Supports 2.9, 2.10, 2.11)

License: The Unlicense

Shell 100.00%

brew-scala-switcher's Introduction

brew-scala-switcher

A utility script to switch between Scala version on OSX that were installed using Homebrew. (Supports 2.9, 2.10, 2.11, 2.12)

IMPORTANT: This script assumes you have

  1. Installed scala using brew install scala (or scala211, or scala210, or scala29) to the default location /usr/local/Cellar/.
  2. You are using Bash (this was not tested on Zsh)

3 Step Installation

scswitch is just a BASH shell script.

  1. Grab scswitch and put it somewhere that is included in your PATH.
  2. If it isn't marked as executable, type chmod +x scswitch to make it so.
  3. I lied, there is no 3rd step.

##Usage

###List installed versions of scala

$> scswitch 

Scala Switch Script

Usage: scswitch [VERSION]

VERSION - Supports versions 2.9.*, 2.10.*, 2.11.* and 2.12.*

Installed Versions:

2.12.1 - Type 'scswitch 2.11' to switch to this version.
2.11.8 - Type 'scswitch 2.11' to switch to this version.

###Switching to a specific version

$> scswitch 2.11
Switchd to:  /usr/local/Cellar/scala211/2.11.8

Why?

Since scala is not a single versioned recipe right now, you can't use brew switch like you would normally do.

How?

Look at the script, it is dead simple (this README.md has more text than the actual script) - all it does is change the needed symlinks in /usr/local/bin

License

None. Public Domain. Do whatever you want.

Warranty

None. Don't come looking for me.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.