Skip to content

Instantly share code, notes, and snippets.

@wgroeneveld
Created October 11, 2012 06:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wgroeneveld/3870664 to your computer and use it in GitHub Desktop.
Save wgroeneveld/3870664 to your computer and use it in GitHub Desktop.
useplay script to switch versioning
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
alias l="ls -la"
export SBT_OPTS="-XX:MaxPermSize=256m"
export BASE_PATH=$PATH
function useplay2 {
useplay "2.0.4"
}
function useplay1 {
useplay "1.2.5"
}
function useplay {
version=${1-1.2.5}
export PLAY_HOME=~/development/play-$version
exportPath
}
function exportPath {
export PATH=$BASE_PATH:$PLAY_HOME
}
useplay1
exportPath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment