Skip to content
Browse files

fixed install.sh to print instructions instead, updated README

  • Loading branch information...
1 parent 70e8cd1 commit dd3b94ee9853a1808961fef83089cad922e02ec3 @cosmin committed Feb 6, 2010
Showing with 24 additions and 14 deletions.
  1. +13 −2 README
  2. +11 −12 install.sh
View
15 README
@@ -1,9 +1,20 @@
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.
+
+ Run install.sh to initialize submodules the very first time.
+ Then source setup.sh to get cljenv shell functionality.
+
+Emacs Support:
+ Place the following in your .emacs to get support for cljenv inside of Emacs.
+
+ (load (concat (getenv "CLJENV_HOME") "/" "setup.el"))
+
+ This will configure Clojure, Slime and swank-clojure to use the same
+ environment that you have activated before starting emacs. Note that at the
+ moment you will need to start Emacs from within a shell where cljenv is
+ activated.
Default environments:
View
23 install.sh
@@ -3,22 +3,21 @@
OS="`uname`"
INSTALL_LOCATION="`pwd`"
-if [[ $OS = "Darwin" ]]; then
- BASHRC="~/.profile"
-else
- BASHRC="~/.bashrc"
-fi
-
echo "Initializing submodules"
git submodule update --init
touch ~/.clj_completions # this file must exist or bad things happen
+echo ""
-echo "source $INSTALL_LOCATION/setup.sh" >> $BASHRC
-echo "cljenv_autostart NOPS1" >> $BASHRC
-echo "Added CLJENV setup.sh to be sourced by default"
-
-echo "(load (concat (getenv \"CLJENV_HOME\") \"/\" \"setup.el\"))" >> ~/.emacs
-echo "Added Shared Profile setup.el to Emacs"
+echo "= Put the following in your .bashrc or similar ="
+echo ""
+echo "source $INSTALL_LOCATION/setup.sh"
+echo "cljenv_autostart NOPS1"
+echo ""
+echo ""
+echo "= Put the following in your .emacs to get emacs support"
+echo ""
+echo "(load (concat (getenv \"CLJENV_HOME\") \"/\" \"setup.el\"))"
+echo ""
echo ""
echo "Done."

0 comments on commit dd3b94e

Please sign in to comment.
Something went wrong with that request. Please try again.