offbytwo / cljenv

Utilities for creating and managing multiple clojure environments

This URL has Read+Write access

cljenv /
name age message
file .gitmodules Loading commit data...
file README Thu Jun 25 13:01:05 -0700 2009 Fix for zsh. [durin42]
directory bin/
file default_cljenv Fri Jun 05 00:57:10 -0700 2009 added CLJENV_ROOT variable that is available to... [cosmin]
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/ Thu Jun 04 22:44:18 -0700 2009 added clojure 1.0 jar [cosmin]
file setup.el
README
CLJENV

Installation:

  To start using CLJENV you just have to source the bin/source file.
  Currently only BASH 3 or later or ZSH are supported.

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