offbytwo / cljenv

Utilities for creating and managing multiple clojure environments

This URL has Read+Write access

cosmin (author)
Fri Jun 05 01:37:24 -0700 2009
commit  14f3446e5b0bc539f99800ce1eab5126c1091f4a
tree    e197134b9ffe2dff6c7d8cd60b5b26e06dfa1fec
parent  81d6863952190f9d30ed08f977229bd25c028ca6
cljenv /
name age message
file .gitmodules Loading commit data...
file README
directory bin/
file default_cljenv
directory emacs/
file epl-v10.html Thu Jun 04 22:44:45 -0700 2009 added the text to the epl-v10 license [cosmin]
directory lib/
file update-externals.sh
README
CLJENV

Installation:

  To start using CLJENV you just have to source the bin/source file.
  Currently only BASH 3 or later is supported, need someone to help with ZSH.

Default environments:

  USER: $HOME/.cljenv
  SYSTEM: /etc/cljenv/system_cljenv
  DEFAULT: /path/to/installation/folder/default_cljenv

Activating an environment:

  cljenv_autostart # activate the first environment of USER, SYSTEM, DEFAULT
  cljenv_autostart NOPS1 # activate the first env, but surpress PS1 modification
  
  cljenv_user # activate the user environment
  cljenv_system # activate the system environment
  cljenv_default # actiavte the default environment

  # use the following commmands to activate environments you create (see below)

  cljenv_activate # activate the environment in the current directory
  cljenv_activate path/to/env/folder # activate the given environment

Creating a new environment:

  cljenv_create # create a new environment in the current folder
  cljenv_create path_to_folder # create a new environment in the given folder

  After running cljenv_create edit the .cljenv file in either the current or
  specified folders to set your options for java, clojure, and clojure-contrib

Deactivating an environment:

  cljenv_deactivate # deactivate the currently active environment